Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Commands for file operations
Message
From
22/03/1999 21:45:26
 
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00200712
Message ID:
00200771
Views:
14
>>Could someone point me towards the VB commands for doing the following:
>>
>>- check if a file exists
>>- determine size of a file
>>- copy a file from one folder to another
>>
>>I have been scratching my head with the VB help for awhile looking for a command for each.
>
>I have found out how to determine the size of a file and how to copy. How do I check if a file exists. Currently, I open a connection to the file. My errorhandler catches error 53 (file does not exist). Is there a command that will do this instead of using the error handler?

Take a look at the DIR() function.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform