>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