Programming Reference Manual
 
Syntax
 
FileExists(filename$)
 
Description
Returns True if filename$ exists; returns False otherwise.
This function determines whether a given filename$ is valid and exists.
 
NOTE: This function will return False if filename$ specifies a subdirectory.
 
Parameter
Description
filename$
This string value is the path and name of the file.
See Also
Example
 
Sub Main
If FileExists(“c:\autoexec.bat”) Then
Msgbox “This file exists!”
Else
MsgBox “File does not exist.”
End If
End Sub