Thanks for the help. I eventually used the form
RUN xcopy c:\path\*.* c:\path\ /Y
or
RUN xcopy c:\path\*.dll c:\path\ /Y
so user could see the files being copied. The first form is for tabkes and indexes and the second one is for the runtime files. I decided that copy the executable was not a good idea.
>>I want to backup the file xxx.exe. It happens to be the executable for the VFP program currently executing so I get a "file in use" error message.
>>
>>Is there a way of copying the currently executing VFP program from with VFP?
>>
>>I hope this is clear.
>>
>>TIA
>
>try the following
>RUN xcopy c:\path\xxx.exe c:\path\
>y may want to see if exe already exist on the destination otherwise u will get an want to overwrite file dos message.
>xcopy allows u to copy files in use.
>I used this to create by data backups while users where running the application.