Checks if a file or directory exists.
FileExists ( "path" )
Parameters
Path | The directory or file to check. |
Return Value
Success: | Returns 1. |
Failure: | Returns 0 if path/file does not exist. |
Remarks
FileExists returns 0 if you specify a floppy drive which does not contain a disk.
Related
FileGetAttrib, DriveStatus
Example
If FileExists("D:\") Then
MsgBox(4096, "", "D: exists.")
Else
MsgBox(4096,"", "D: does not exist.")
EndIf