Click to See Complete Forum and Search --> : I need a tip
Turin
Jan 12th, 2000, 04:49 AM
What is the most efficient way to determine if a given file exists?
Benj
Jan 12th, 2000, 04:54 AM
If Dir(filepath) = "" then NoFileExists
Aaron Young
Jan 12th, 2000, 04:55 AM
If Len(Dir("C:\FilePath\FileName.ext")) Then
MsgBox "File Exists"
Else
MsgBox "File Doesn't Exist"
End If
------------------
Aaron Young
Analyst Programmer
aarony@redwingsoftware.com
ajyoung@pressenter.com
Turin
Jan 12th, 2000, 04:56 AM
thanks.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.