Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to wait for completion of shellexec ?
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Miscellaneous
Thread ID:
00739175
Message ID:
00739324
Views:
17
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform