IDirectory.Move

Syntax

Move(Source: String; Destination: String);

Parameters

Source - directory that must be moved.

Destination - directory, into which moving is executed.

Description

The Move method moves the Source directory with all its contents into the Destination directory.

Example

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:

IDirectory