IDirectory.Move

Syntax

Move(Source: String; Destination: String);

Parameters

Source - a directory that should be moved.

Destination - a directory into which moving is performed.

Description

The Move method moves a directory Source with all its content into a directory Destination.

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;

While executing this example, a directory Source is moved to a directory Destination with all its content, if directories passed by the parameters Source and Destination exist in a file system.

See also:

IDirectory