Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DIRECTORY() Command
Message
 
 
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00743555
Message ID:
00743570
Views:
14
This message has been marked as a message which has helped to the initial question of the thread.
>I need to check for the existence of a directory under Foxpro 2.6. The command is DIRECTORY(cExpression) in VFP 7.0, but this function/command does not exist in 2.6. How can I do this in 2.6?
>
>Grace and peace,
>
>John

Two methods spring to mind.

Use ADIR() and check the resulting array if it returns more than 0.

Or FCreate() a temp file, and erase the temp file. The LLFN's don't trigger error conditions if they fail -- they just return negative numbers.
Previous
Reply
Map
View

Click here to load this message in the networking platform