Procedure DirectoryCreate(directoryname)

DirectoryCreate

The procedure DirectoryCreate creates a new directory on your disk.

DirectoryCreate(
        directoryname      ! (input) scalar string expression
        )

Arguments

directoryname

A scalar string expression representing the new directory name. If the name does not contain a full path, then the it is assumed to be relative to the current project directory.

Return Value

The procedure returns 1 if the directory is created successfully. If it fails, then it returns 0, and the pre-defined identifier CurrentErrorMessage will contain a proper error message.

Note

If the new directory path contains references to non-existing directories, then the procedure tries to create each of these directories.

See also

The procedures DirectoryExists, DirectoryDelete.