Previous Page | Next Page

Functions and CALL Routines

DCREATE Function



Returns the complete pathname of a new, external directory.
Category: External Files

Syntax
Arguments
Details
Examples

Syntax

DCREATE(directory-name<,parent-directory>)


Arguments

directory-name

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

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.


Examples

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\');

Previous Page | Next Page | Top of Page