Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Run an EXE and wait
Message
De
16/04/2019 13:08:42
 
 
À
16/04/2019 13:03:42
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01667388
Message ID:
01668134
Vues:
63
>>Thanks Dragan. I found a simple solution using Windows Scripting Host:
>>
>>
>>oShell = CREATEOBJECT('WScript.Shell')
>>oShell.Run( '"My Application Name.exe" MyParameter'  ,  ,  .T. )   &&  .T. = Wait for completion / .F. return immediately
>>
>
>Both are shells around ShellExecute() calls. Does it also allow to run hidden?

Yes it does - second parameter can be:

a) 0 runs hidden
b) 1 runs normal window
c) 2 runs normal window behind current window
d) 3 runs maximized window
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform