Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A Better Copy File?
Message
De
13/02/2002 00:23:30
 
 
À
13/02/2002 00:14:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00619287
Message ID:
00619288
Vues:
13
This message has been marked as the solution to the initial question of the thread.
>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.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform