Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A Better Copy File?
Message
From
13/02/2002 01:17:02
 
 
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00619287
Message ID:
00619291
Views:
16
>>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
Map
View

Click here to load this message in the networking platform