Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to determine if a folder exists?
Message
From
14/02/2004 11:30:57
 
 
To
14/02/2004 11:27:56
Mike Sue-Ping
Cambridge, Ontario, Canada
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00877389
Message ID:
00877394
Views:
11
Yes, less typing, but you can not tell whether you have a file or a directory with the given name. With my code you know that you have a directory and not a file!

>Thanks for the snippet Tore. I'll use Michel's suggestion and go with DIRECTORY(). Its less typing :)
>
>Mike
>
>
>>
>>IF ADIR(temp,'mydir',"D")>0
>> && Directory mydir exists
>>ENDIF
>>
>>
>>>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform