Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FOLDER does not exist
Message
General information
Forum:
Visual FoxPro
Category:
Other
Title:
FOLDER does not exist
Miscellaneous
Thread ID:
00888629
Message ID:
00888629
Views:
29
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
Next
Reply
Map
View

Click here to load this message in the networking platform