Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Seeking way to create entire Directory Structures
Message
From
01/10/2001 14:16:15
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00562465
Message ID:
00562692
Views:
20
>Greetings -
>
>Let's say I want to copy files from within a Visual FoxPro application (6.0) to a destination that may or many not have the same directory structure as the source. For example:
>
>If the:
>
>SOURCE FILE TO COPY is R:\myAPP\DATA\COREDATA\MAINTABLES\ABC.DBF
>
>and I would like to create:
>
>S:\myAPP\DATA\COREDATA\MAINTABLES\ABC.DBF, but

It's simple:
if not dire("S:\myAPP\DATA\COREDATA\MAINTABLES")
   md S:\myAPP\DATA\COREDATA\MAINTABLES
endif
Just tried it (in VFP7, but I think it works even in VFP5) and it created the full path even if none of the S:\myapp or below existed before.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform