Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Returning from RUN command
Message
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00504730
Message ID:
00504746
Views:
18
Hi Pete,

Have you considered having your FPW program look for the existence of either a file or an environment variable before continuing?

It would look something like this:

RUN MyDosApp
DO WHILE !FILE( "AppDone.TXT" )
ENDDO && !FILE()
*-- Continue with the FPW app


Then, have your batch file that runs the DOS app create an empty file called AppDone.TXT as its last process.

Not the most high-tech solution, but it works. You could also write a routine that checked for an environment variable and use that test as the condition for the DO WHILE loop.

>Hi all,
>In my apps, I have to run some DOS commands and apps. The problem I have is that FP 2.6W returns before the other apps have finished running! Currently I am putting a WAIT WINDOW that says wait till the other app is done before clicking. This to me is rude and crude.
>
>I typically RUN a .BAT file from my app that includes deleting some files, running the other app, and then NPRINTing (Novell print command) the reports that were generated by the other app.
>
>Is anyone aware of a nice way to RUN and wait automatically so that the app is more professional?
>
>TIA
>Pete Adams
>Programmer
>Compu-Mail
>padams@compu-mail.com
Evan Pauley, MCP
Positronic Technology Systems LLC
Knoxville, TN

If a vegetarian eats vegetables, what does a humanitarian eat?
Previous
Reply
Map
View

Click here to load this message in the networking platform