General information
Category:
Windows API functions
>>Hi All:
>>
>>From a Win98 Workstation (using VFP 7.0) I'm trying send a command to copy a file from one server to another server.
>>
>>The Windows API "CopyFile" and VFP's "Copy File" works. However, both will not return control to VFP until the file copy is completed. Is there a command/function/API that will begin a file copy and immeditely return control back to VFP - w/o waiting for the file copy to finish?
>>
>>I have the directories of each server mapped as "G" and "H". I'm trying to copy MPEG files as such ... Copy G:\VIDEO\HELP.MPG TO H:\VIDEO\HELP.MPG
>>
>
>It'd be pretty trivial to spawn an XCOPY to run as a separate process; I'd suggest using API_APPRUN using the LaunchApp method, but something as trivial as the VFP RUN command with one of the /N command line parameters would allow it.
ED:
Thanks for your prompt reply. YOU ARE RIGHT!!!
It was a simple as RUN /N ... how stupid of me ... grrrrr
Again, thanks Ed.
Mal
P.S. Will also look into the API_APPRUN - LaunchApp Method.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only