DirCreate

Creates the specified directory.

Function Group Execution Windows Embedded Thin Client
DirCreate File Synchronous Supported Supported Executed on Server

Syntax

DirCreate( strDirectory, optBooFullPath )
strDirectory
The name and file path of the directory to create.
optBooEmptyOnly
Optional flag. If omitted or if this parameter has the value 0, the directory is created only if all previous directories exist. If this parameter has the value different from 0, the full path specified in the strDirectory parameter is created.

Returned value

-1 Invalid parameters
0 Failed to create the directory (e.g., Drive does not exist.)
1 Directory created successfully.

Examples

Tag Name Expression
Tag DirCreate("C:\Studio\Temp") // The Temp folder is created in the C:\Studio path (only if the C:\Studio path already exists).
Tag DirCreate("C:\Studio\Temp",1) // The C:\Studio\Temp full path is created.