Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need ShellExecute Help
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00362773
Message ID:
00362804
Vues:
12
>I am using the pkzip25 command line utility to unpack a
>zip file from within my application.
>
>Can someone help with the syntax for ShellExecute? One
>requirement is that I need to wait for the unzipping to
>be finished before the VFP processing continues.
>

Unfortunately, ShellExecute() doesn't provide a mechanism for this. You have several options:

(1) Use CreateProcess() and monitor the process handle for completion. This is what I do in API_APPRUN (download from the Files Section)

(2) Use ShellExecuteEx(), extract the process handle from the returned structure, and use the same basic process to monitor the process completion I use in API_APPRUN

(3) Instantiate the WSH Wscript.Shell object and use it's RUN method. It provides an option to wait on termination.
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