MKDIR

Purpose:

Creates a directory.

Syntax: 

MKDIR("dirname", verbose)

"dirname"

-

A string, the name of the directory to create. The name can include sub-directories.

verbose

-

Optional, an integer flag. Display a message if the directory already exists.

0:

Do not display message (default).

1:

Display message.

Returns:

An integer, a positive integer if successful.

Example:

mkdir("\spldir")

 

creates the directory \spldir.

Example:

mkdir("E:\dir1\dir2\dir3")

 

create a three level directory on the E: drive.

Remarks:

MKDIR creates a directory. If the directory name contains sub-directories, MKDIR attempts to create each sub-directory.

 

See RMDIR to delete a directory.

See Also:

COPYFILE

DELFILE

DIREXISTS

MOVEFILE

RMDIR