Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to wait for completion of shellexec ?
Message
From
08/01/2003 15:14:18
 
 
To
08/01/2003 04:20:17
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00739175
Message ID:
00739520
Views:
18
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform