Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine if a folder exists?
Message
 
To
14/02/2004 11:14:39
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00877389
Message ID:
00877457
Views:
13
>I'm using VFP8. How can I determine if a folder already exists? I can't seem to find a built in function.
>
>TIA
>
Mike,

Since you're using VFP 8 which is supported on Win2K and above, I'd suggest
oFSO = CREATEOBJECT('Scripting.FileSystemObject')
IF oFSO.FolderExists("c:\foldername") THEN
  * Code here
ENDIF
George

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

Click here to load this message in the networking platform