>>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