|
-
Nov 5th, 2000, 09:37 AM
#1
Thread Starter
New Member
How do I check if a file exists, _besides_ using Dir$(), as using Dir sometimes gives an error (especially when the path give is too long, i think).
-
Nov 5th, 2000, 10:11 AM
#2
Frenzied Member
-
Nov 5th, 2000, 10:15 AM
#3
Frenzied Member
I seem to remember seeing a reply to this same question within the past month. I believe the solution used API calls. Try searching the older posts.
-
Nov 5th, 2000, 10:49 AM
#4
Found it!!!!!
I think I have found just what you are after - Take a look : -
http://www.planetsourcecode.com/xq/A...s/ShowCode.htm
Hope this helps 
-
Nov 5th, 2000, 10:55 AM
#5
Member
Make reference to Microsoft Scripting Runtime
option Explicit
private Sub Form_Load()
Dim fso as FileSystemObject
set fso = new FileSystemObject
If fso.FileExists("C:\Programing\David\database.ini") then' Put your file name in here
MsgBox "Found"
else
MsgBox "Not Found"
End If
End Sub
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|