Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to make ShellExecute wait for process to complete
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Versions des environnements
Visual FoxPro:
VFP 6 SP5
Divers
Thread ID:
00966017
Message ID:
00966267
Vues:
34
Hi George
>oShell = CREATEOBJECT('WScript.Shell')
>oShell.Run('myexe.exe', 5, .T.)
>The "myexe.exe" should be replaced by the fully qualified path of the executable. 5 = SW_SHOWNORMAL and the .T. parameter indicates that the calling application should wait until the called application terminates.

That's short and sweet. I guess the parameters to be passed to the exe is included in the exe name string itself, right?

Always open to newer ideas. Thanks a lot for taking time out to respond, esp. after knowing I had settled for Ed's class.
Regards
Bhavbhuti
___________________________________________
Softwares for Indian Businesses at:
http://venussoftop.tripod.com
___________________________________________
venussoftop@gmail.com
___________________________________________
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform