Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FOLDER does not exist
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00888629
Message ID:
00888633
Views:
8
>If a folder, such as \TEMP, hanging off of another folder, such as C:\PATIENTS did not exist, how would I determine that it does not exist. Maybe a combination of CURDIR() or SYS(2003) with something else? There does not seem to be anything that checks for a specific folder, so I suppose I'd have to do some string evaluating? The following is Pseudo code only.
>
>
>IF NOT FOLDER("C:\PATIENTS\TEMP")
>   CD C:\PATIENTS
>   MD TEMP
>ENDIF
>
>
>Or in rela VFP code,...
>
>CD C:\PATIENTS
>IF CURDIR() <> "C:\PATIENTS\TEMP"
>   MD TEMP
>ENDIF
>
Use the DIRECTORY() function.
George

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

Click here to load this message in the networking platform