>>>Is there a way to have foxpro waiting for the end of the execution of a program called with shellexec ?
>>>
>>>Thanks
>>>Eric
>>
>
>>No way <s>. If your app is a single instance on a given computer then you could use Ed Rauh's (rest in peace my friend) Api_Apprun from download's section. Otherwise no alternative that I could find. See thread #
738764 for some details.
>>Cetin
>
>Cetin,
>Actually there is a way to wait. It using the same function (WaitForSingleObject), but it's little bit dirty way. CreateProcess or WScript is the prefer method to launch an app and wait.
>
>I can post the code if you still want it :)
>Regards
Herman,
Did you really read the thread #
738764 ? If you did and saying really WaitForSingleObject waits pls help me with details. I'm trying to make it work for a long time.
"CreateProcess or WScript is the prefer method to launch an app and wait" ???
What does CreateProcess offer for to wait ? I couldn't see such a parameter. AFAIK after CreateProcess you still need WaitForSingleObject.
WScript - Does it do it differently or is a wrapper to WinAPI calls ?
Cetin