Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run an EXE and wait for it to finish
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00936327
Message ID:
00936580
Views:
22
Hi George

Thanks for the reply.

John

>>I need to run an exe from our application and wait for it to finish, then continuing running our application. I have tried using the RUN command but it doesn’t wait for the other exe to finish. This needs to work with all versions of Windows from 95 to XP.
>>
>>Any ideas?
>>
>>Thanks
>>
>John,
>
>If the Windows Script Host is an option (and it's freely re-distributable for Win95 and is installed by default for Win98):
oShell = CREATEOBJECT("WScript.Shell")
>oShell.Run("MyExe", 5, .T.)
will do it.
Previous
Reply
Map
View

Click here to load this message in the networking platform