Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Validate a pathspec
Message
From
13/12/2006 11:36:37
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
13/12/2006 11:33:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01177175
Message ID:
01177223
Views:
9
>>>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 :)

Re: Making a Directory Thread #1172934 Message #1172983
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Reply
Map
View

Click here to load this message in the networking platform