Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Wildcard Copies
Message
From
30/03/1998 09:26:55
 
 
To
30/03/1998 09:24:07
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00088079
Message ID:
00088080
Views:
33
>I'm trying to copy the contents of four directories
>from one machine to another programatically. The copies
>work fine in windows 95 using a dos bat file with the
>format: copy C:\Mydirectory\*.* S:\Mydirectory where S
>is a mapped drive. I would like to do this in VFP3 since
>I first update 4 files one each in the 4 directories I
>am copying and the update takes place in VFP3 and after
>the copy calls a VFP3 program which turns the originating
>machine off. The proble is that the DOS batch file
>proceeds to begin the copies without waiting for the
>VFP3 program to finish updating the files. I want to
>use a wildcard copy because the number of files is so
>large and I don't want to have to update this program
>if the system expands to include new files. Thanks
>Derek

You can use Fox native COPY FILE command. To support wildcards you can first collect file names into array (using ADIR() with wildcard) and then loop through this array.
Edward Pikman
Independent Consultant
Previous
Reply
Map
View

Click here to load this message in the networking platform