Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Checking for the Existence of a Directory
Message
General information
Forum:
Visual Basic
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00441072
Message ID:
00441114
Views:
9
>I have a program that will ask the user for a directory name. I need to be able to verify whether or not that directory exists.
>
>Can anyone give me some example code for checking for the existence of a directory contained in a string?
>
You can use the Dir statement or the GetFolder method of FSO (http://msdn.microsoft.com/scripting/default.htm?/scripting/vbscript/doc/vsmthgetfolder.htm).
Éric Moreau, MCPD, Visual Developer - Visual Basic MVP
Conseiller Principal / Senior Consultant
Moer inc.
http://www.emoreau.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform