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