Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here


Using the DOS start command

Using the DOS start command

Using the DOS start command

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

RE: Using the DOS start command

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

RE: Using the DOS start command

Can you not add an exit command at the end of the Batch file?



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

RE: Using the DOS start command

Thanks everyone. Adding exit to the batch file did the trick.

Jerry Scannell

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close