Copy(Source: String; Destination: String);
Source - a directory that should be copied.
Destination - a directory into which copying is performed.
The Copy method copies a directory Source with all its content into a directory Destination.
Sub UserProc(Source: String; Destination: String);
Begin
If Directory.Exists(Source) And Directory.Exists(Destination) Then
Directory.Copy(Source, Destination);
End If;
End Sub UserProc;
While executing this example Source directory is copied into Destination directory with all its content, if directories passed by parameters Source and Destination exist in a file system.
See also: