Copy(Source: String; Destination: String);
Source - directory that must be copied.
Destination - directory, into which copying is executed.
The Copy method copies the Source directory with all its contents into the Destination directory.
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 the example the Source directory is copied into the Destination directory with all its contents if directories passed by the Source and Destination parameters exist in the file system.
See also: