Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using the DOS start command 1

Status
Not open for further replies.

JScannell

Programmer
Jan 9, 2001
306
US
I'm using a DOS batch file to simplify some manual processes.

One command has to use the DOS "start /min xxxx" because I need to return to the main menu batch file right away to do the other commands.

Here's the problem: When I finish the main batch file and then close the program that had to be spawned with the "start /min xxxx", I'm left with a minimized DOS command window.

I need to know if there is a way to spawn the application and then when it is closed by the user to close the DOS window.

Sorry that I had to go back to the '80's with DOS!!

Thanks in advance,

Jerry Scannell
 
I have never tried this in the Windows world, but in the old UNIX days I'd have run it background mode and that would close the window but keep the process running. Try putting an "&" at the end of the line...this may not help, but give it a shot...

Be Alert, America needs more lerts
 
Can you not add an exit command at the end of the Batch file?

Code:
exit


----------------------------------
Phil AKA Vacunita
----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.

Web & Tech
 
Thanks everyone. Adding exit to the batch file did the trick.

Jerry Scannell
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top