>In a VFP 7 program I have a RUN command that executes a VB EXE
>
>RUN abc..exe
>
>When I test this from the VFP desktop by running the form that contains the RUN command, then the RUN command waits for the EXE to complete, and it always works correctly.
>
>However, when the VFP is compiled into an EXE, then it does not always wait, but the VFP application continues execution, while the VB EXE is waiting for input with it's form displaying.
I'd use the Windows Script Host for this.
oShell = CREATEOBJECT('WScript.Shell')
oShell.Run(abc.exe, 5, .T.)
The second parameter is the windows style and the last if the caller should wait for the called application to terminate.
George
Ubi caritas et amor, deus ibi est