Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can i verify the existence of a directory in vfp 3
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00128253
Message ID:
00128268
Views:
28
>>how can i verify the existence of a directory in vfp 3
>>
>>thanks
>You can sheck for the existance of a nul entry in the directory with the file() function. Below is a routine I typically use to do this.
>
>
>* IsDir Method
>lparameter tcPath
>if right(tcPath,1) # '\'
>	tcPath = tcPath + '\'
>endif
>return file(tcPath + 'nul')
>
Testing for NUL file does NOT work on ALL network OS's. ADIR seems to work on everything I've tried it on.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform