Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to make ShellExecute wait for process to complete
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
00966017
Message ID:
00966019
Views:
133
This message has been marked as the solution to the initial question of the thread.
The ShellExecute() doesn't wait for application it launches to complete but returns control immediately. You can use API_APPRUN in .VCX form File #9477 or WSH Run method Re: Pls Help .. Mr.Ed Rauh's FAQ ID: 7789 , api_apprun Message #888807

>
>I have this ShellExecute declaration and execution working well. But it seems that ShellExecute does not wait for the process to complete and then proceed with VFP code execution.
>
>Is there any way or another equivalant win-api that waits for the process to complete before it returns control to VFP?
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform