>>>Is there a way to have foxpro waiting for the end of the execution of a program called with shellexec ?
>>>
>>>Thanks
>>Eric,
>>
>>In addition, the Windows Script Host's Shell object has a Run method that allows you to provide a parameter that causes the calling application to wait until the called application terminates.
>Yes but I want to hide the running window (it is calling a dos application) and run doesn't seem to provide an option to hide the running window.
I know that Ed's API_APPRUN can do this. AFAIK, you should be able to hide the DOS window with the Shell's run method by passing 0 (SW_HIDE) for the show window paramter. Haven't tried it though.
George
Ubi caritas et amor, deus ibi est