What is the most efficient way to determine if a given file exists?
Printable View
What is the most efficient way to determine if a given file exists?
If Dir(filepath) = "" then NoFileExists
------------------Code:If Len(Dir("C:\FilePath\FileName.ext")) Then
MsgBox "File Exists"
Else
MsgBox "File Doesn't Exist"
End If
Aaron Young
Analyst Programmer
[email protected]
[email protected]
thanks.