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:
00936456
Views:
27
>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.
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform