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:
00966573
Vues:
23
>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?

Yep, but watch out for long file names.

>Always open to newer ideas. Thanks a lot for taking time out to respond, esp. after knowing I had settled for Ed's class.

No problem. Ed was the one who introduced me to the WSH. I think that he'd be happy to know that it was of use to someone.
George

Ubi caritas et amor, deus ibi est
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform