DIREXISTS

Purpose:

Returns 1 if directory exists.

Syntax: 

DIREXISTS("dirname")

"dirname"

-

A string, the name of the directory to test.

Returns:

An integer, 1 if the directory (folder) exists.

Example:

direxists("spl")

 

returns 1 if an spl directory exists in the current directory.

Example:

direxists(gethome + "spl")

 

returns 1 if an spl directory exists in home (installation) directory.

Example:

direxists("\windows\system32")

 

returns 1 if the directory \windows\system32 exists.

Remarks:

DIREXISTS tests for directory existence.

 

See FILEEXISTS to test if a file exists.

See Also:

COPYFILE

DELFILE

FILEEXISTS

MKDIR

MOVEFILE