Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Check for existence of File
Message
 
To
17/09/2000 23:23:26
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00417498
Message ID:
00417795
Views:
12
There is a File System Object
that does more than a file exist (check the msdn)
1st
add a reference to scrrun.dll from the wintnt/system dir
2nd create the object
private objFileSystemObject As Scripting.FileSystemObject
Set objFileSystemObject = New Scripting.FileSystemObject
Finnaly used it in you apps
eg if objFileSystemObject.FileExists("c:\autoexec.bat") then
....

do not forget to set objFileSystemObject to nothing

PS
with this object you can create, delete folders and files
and also create txt files and write or read from txt
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform