I suppose this will do what you need:
1.
run XCOPY ...
See DOS Help for XCOPY for more details
2. You may shutdown PC automatically upon completing the program. If I recall correctly, there was shutdown routine in download section on UT.
>
> Hi all,
>
> All I want is to copy an entire directory with it's subfolders from one drive to another. No compression needed, just an exact copy. Because of large amount of files, the copy process may last couple of hours.
> Is there any way to write a VFP code to do this? As I plan the program will fire at the evening and shut down the computer after the job has been done.
> My question:
> 1. How to issue the copy process incl. subfolders?
> 2. How to get information the copy process is still running (e.g. there is no need to shut down the computer yet)?
>
> TIA, Káldeus
>