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 used ShellExecute (via FFC) to run an external Windows EXE from VFP. The ShellExecute runs the application and returns control to VFP even if the EXE has not yet finished executing. However, I need the application to finish before proceeding to the next line of code in VFP.
>
>Any suggestions on how to get this done? Can I use the application handle returned by the ShellExecute method?
>
>TIA
--sb--