Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run an EXE and wait
Message
From
16/04/2019 13:08:42
 
 
To
16/04/2019 13:03:42
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
01667388
Message ID:
01668134
Views:
62
>>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.
Previous
Reply
Map
View

Click here to load this message in the networking platform