Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Seeking way to create entire Directory Structures
Message
From
01/10/2001 09:08:13
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00562465
Message ID:
00562468
Views:
18
I don't know whether this is exactly what you need, but the DOS XCOPY command can copy an entire directory structure.
RUN /N XCOPY Source Destination
HTH, Hilmar.

>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
>
>only the following structure/folders currently exists:
>
>S:\myAPP\DATA\
>
>What I am looking for is a function that I would use to do the copy from within Visual FoxPro that will look at the above an automatically create the missing folders (\COREDATA\ and \COREDATA\MAINTABLES\), then do the actual copy.
>
>Does anyone out there know or have a function like this???
>
>
>________________
>_____/ Regards,
>____/ al
>___/
>__/
>_/
>/
Difference in opinions hath cost many millions of lives: for instance, whether flesh be bread, or bread be flesh; whether whistling be a vice or a virtue; whether it be better to kiss a post, or throw it into the fire... (from Gulliver's Travels)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform