CreateDirectory |
Top Previous Next |
The CreateDirectory command allows you to create a specified directory. The full path is created including any directories in the path that do not already exist. Note: If the directory already exists on your computer the command will not consider that an error and processing of the script will continue. If you want to be sure whether or not the directory already exists you can create a Conditional command Command Syntax
CreateDirectory:[TargetDirectory]
The colon after the command is 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:
TargetDirectory: The fully qualified path identifying the directory to Create
The parameter is compulsory. If the parameter is missing or invalid an error will be thrown. The parameter must be surrounded by quotation marks if one or more spaces are included in the path. It is good practice to include the quotation marks in any case, so that it reduces the risk of error when writing scripts.
Example:
CreateDirectory:"C:\Test"
See Also: ClearDirectory DeleteDirectory MoveDirectory RenameDirectory
|