| View previous topic :: View next topic |
| Author |
Message |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Fri Oct 07, 2005 12:32 pm Post subject: RUN command on Windows 9x OS |
|
|
Hi,
I am calling a DOS EXE from VDS with the RUN command and I use the parameter WAIT. All works on Windows 2K-XP. Its runs the EXE and when its finish executing VDS continues...
But on Windows 9x, the EXE executes but the DOS box does not close by itself when its finishes executing. The caption of the DOS box says FINISHED but stays open.
Is there a way around this under Windows 9x? I still want to wait that the EXE finishes...
Thanks |
|
| Back to top |
|
 |
jwfv Valued Contributor

Joined: 19 Mar 2002 Posts: 422 Location: Beaufort, SC
|
Posted: Fri Oct 07, 2005 1:08 pm Post subject: |
|
|
I can't remember - was there a setting for programs in windows 9x that said something like "close window when program finishes" or something like that? It seems like I ran into the same problem and fixed it by changing the properties of either my program or the command.com program. _________________ Joe Floyd |
|
| Back to top |
|
 |
Aslan Valued Contributor


Joined: 31 May 2001 Posts: 589 Location: Memphis, TN USA
|
Posted: Fri Oct 07, 2005 4:48 pm Post subject: |
|
|
Try using:
Run command /c <app> |
|
| Back to top |
|
 |
marty Professional Member


Joined: 10 May 2001 Posts: 789
|
Posted: Fri Oct 07, 2005 6:47 pm Post subject: |
|
|
I will try that Thanks for the tip |
|
| Back to top |
|
 |
vtol Valued Contributor


Joined: 05 Feb 2004 Posts: 656 Location: Eastern Indiana
|
Posted: Fri Oct 07, 2005 8:13 pm Post subject: |
|
|
If you have one that refuse to close, I've think I had to use @retcode() strategy.
Most cases you dont need to use the above.
If all else fails try adding a DOS bat file with the EXIT command in it.
DOS batch EXIT command:
This exits the current command shell. In windows it will close your DOS window. (Unless you have more than one instance of command.com running). If you are at a real DOS prompt (No windows in the background) nothing will happen. |
|
| Back to top |
|
 |
|