Enough already!! You don't need silly code or error trapping to find out if a file exists or not.
Enough already!! You don't need silly code or error trapping to find out if a file exists or not.
Rate Enough already!! You don't need silly code or error trapping to find out if a file exists or not.
(1(1 Vote))
FileExists = Not (Dir(filespec)="")
'// there! filespec is the filename with full path. If the file exists then
'// FileExits = True, if it does not exist, then FileExists = False.
'// Simple really.
Enough already!! You don't need silly code or error trapping to find out if a file exists or not. Comments
No comments yet — be the first to post one!
Post a Comment