Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run EXE not waiting
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00913598
Message ID:
00913629
Views:
11
>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform