MoveDirectory

Top  Previous  Next

 

The MoveDirectory command allows you to move a specified directory to another location.

 

Command Syntax

 

MoveDirectory:[SourceDirectoryName],[TargetDirectoryName]

 

The colon after the command and the comma between parameters are compulsory. Any additional spaces or characters will cause an error to be thrown. The command itself is not case sensitive, but parameters may be depending on the operating system and locale.

 

Parameters:

 

SourceDirectoryName: The fully qualified path and Directory name identifying the Directory to move

TargetDirectoryName: The fully qualified path and Directory name to which the Directory should be moved

 

All parameters are compulsory. If any parameter is missing or invalid an error will be thrown. The parameters must be surrounded by quotation marks if one or more spaces are included in the path and Directory name. It is good practice to include the quotation marks in any case, so that it reduces the risk of error when writing scripts.

 

Example:

 

MoveDirectory:"C:\Test","C:\Temp\Test"

 

See Also: ClearDirectory CreateDirectory DeleteDirectory RenameDirectory