Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine if a folder exists?
Message
From
14/02/2004 12:02:28
 
 
To
14/02/2004 11:40:29
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00877389
Message ID:
00877396
Views:
9
>Tore,
>
>I'm not sure what it is you are getting at. Can you provide me with an example?
>
>If I use DIRECTORY("C:\MYFOLDER") in the debugger, VFP8 returns .T. because I do have this folder. Next, if I try to create a file named MYFOLDER on the root of drive C: without an extension, Windows complains and wont create it (no surprise here).
>
>Mike

Mike, that is a surprise :) You can create a file with no extention provided it doesnt match another file or folder name. Windows has no problem with that as such. DIRECTORY() will return false if you pass it as the parameter, which is correct behaviour.
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Reply
Map
View

Click here to load this message in the networking platform