Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validate a pathspec
Message
From
13/12/2006 11:33:22
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01177175
Message ID:
01177222
Views:
10
>>Has anyone published a routine that will validate a path specification and if it doesn't exist will create it? This would have to be recursive and move up or down the directory structure to see if each subsequent folder existed and if not it would create it. Maybe a do while loop of some sort.
>>
>>Thanks for your community wisdom.
>
>It does not have to be recursive, I believe. With DIRECTORY function you can check, if the directory exists and MD can create directory several levels deep, as I just tried in the command window
>MD c:\test50\test30\test40
>
>In any case, I saw a recent FAQ for validating given path. Validating that a path and filename is usable FAQ #31348

Cool! Thanks Naomi. I didn't realize MD would do more than the end of the path. That really makes it easy.

- Don :)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform