Move(Source: String; Destination: String);
Source - directory that must be moved.
Destination - directory, into which moving is executed.
The Move method moves the Source directory with all its contents into the Destination directory.
Sub UserProcMove(Source: String; Destination: String);
Begin
If Directory.Exists(Source) And Directory.Exists(Destination) Then
Directory.Move(Source, Destination);
End If;
End Sub UserProcMove;
On executing the example the Source directory is moved to the Destination directory with all its contents if directories passed by the Source and Destination parameters exist in the file system.
See also: