Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Run a windows program from within VFP6 app
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00415851
Message ID:
00416392
Views:
25
>Graig:
>Have you ever noticed that when implementing "RUN/N" for a DOS EXE (and if the DOS EXE does some file work), that the VFP program continues through, even though the DOS EXE file service has not completed? IOW: If the VFP app expects a file immediately after "RUNning /N MyDOS.exe", in some cases, that "DOS" file may not be ready.

Terry,

PMFJI, but this is standard behavior in Win32, which is a pre-emptive multi-tasking OS. If you need to know when a process complete's there are two possibilites: 1. Ed Rauh has placed a file here (API_APPRUN) that can do this; and 2. The Windows Script Host's Shell object has a Run method that will wait until the app terminates.

>A follow up: How can we determine if CREATEOBJECT() will service executing other apps on the desktop?

I'm not sure what you mean here.
George

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

Click here to load this message in the networking platform