Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to check if a folder already exists?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00400144
Message ID:
00400561
Views:
14
>Ed!
>
>I'm shocked that you neglected an opportunity to mention WSH ;-)
>
>oFSO = createobject('Scripting.FileSystemObject')
>? oFSO.FolderExists('c:\Moo\')

I'll speak up for Ed, here (even though he's already spoken for himself). If he's like me, I don't use the WSH when there are perfectly good, reliable VFP commands that'll do the job. So while I wouldn't use FolderExists (because of DIRECTORY()), I would use DriveExists or the IsReady property of the drive object.
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform