DCREATE Function

Returns the complete pathname of a new, external directory.

Category: External Files

Syntax

Required Argument

directory-name

is a character constant, variable, or expression that specifies the name of the directory to create. This value cannot include a pathname.

Optional Argument

parent-directory

is a character constant, variable, or expression that contains the complete pathname of the directory in which to create the new directory. If you do not supply a value for parent-directory, then the current directory is the parent directory.

Details

The DCREATE function enables you to create a directory in your operating environment. If the directory cannot be created, then DCREATE returns an empty string.

Example

To create a new directory in the UNIX operating environment, using the name that is stored in the variable DirectoryName, follow this form:
NewDirectory=dcreate(DirectoryName,'/local/u/abcdef/');
To create a new directory in the Windows operating environment, using the name that is stored in the variable DirectoryName, follow this form:
NewDirectory=dcreate(DirectoryName,'d:\testdir\');