Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to wait for completion of shellexec ?
Message
From
09/01/2003 06:51:10
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
08/01/2003 15:14:18
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00739175
Message ID:
00739724
Views:
21
>>>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
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform