>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