CreateDirectory

ITP/Server will create the specified directory.

The command CreateDirectory will succeed if the specified directory could be created or if the directory already exists.

Syntax
CreateDirectory
Dir(<text>)
Security(<text>);
Parameters

Dir: Required.
The directory that ITP/Server will create.

Security: Optional.
Directory which will be used to set security attributes on the new directory.

Remarks

The new directory will inherit the compression and encryption attributes from its parent directory. If the 'Security' parameter is used the directory access rights from that directory are applied to the new directory. If there is no Security parameter specified, Windows NT will assign default access rights to the new directory.

Note

The command CreateDirectory will only succeed if the parent directory already exists. Use the script CreatePath supplied in the Sample directory to create a directory path with a single command.

Note

The Security parameter of the command CreateDirectory will only work properly for Microsoft Windows 2000 and up.