FILEEXISTS

Purpose:

Returns 1 if file exists.

Syntax: 

FILEEXISTS("filename")

"filename"

-

A string, the name of the file to test.

Returns:

An integer, 1 if file exists.

Example:

fileexists("readme.txt")

 

returns 1 if readme.txt exists in the current directory.

Example:

fileexists(gethome + "readme.txt")

 

returns 1 if readme.txt exists in home (installation) directory.

Example:

fileexists("E:\temp\readme.txt")

 

returns 1 if E:\temp\readme.txt exists.

Remarks:

FILEXISTS tests for file existence.

 

See DIREXISTS to test if a directory exists.

See Also:

COPYFILE

DELFILE

DIREXISTS

MKDIR

MOVEFILE