IsFile()
Determine if a files exists.
Syntax
IsFile(<cFilespec>) --> lFound
Arguments
<cFilespec> --> is in the name of the file to locate which may include path information and wildcard expressions.
Returns
IsFile() returns logical TRUE if there is a match for any file matching the <cFilespec> pattern; otherwise, it returns logical FALSE.
Description
The IsFile() function determines whether any file matching a file specification pattern is found. IsFile() searches the specified directory if a path is explicitly specified. If a path is not specified, IsFile() searches the current default Windows directory. As the default Windows directory is subject to change by other Windows applications it is recommended that you always specify an explicit path.
Note
that IsFile() will not recognize hidden or system files in its search.
Examples
If IsFile("C:\CAPITAL\DATA1\DOCKETS.DBF")
Echo("File found!")
Endif
____________________________
Related Topics: