Smart questions
Smart answers
Smart people
Join Tek-Tips Forums
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login




Remember Me
Forgot Password?
Join Us!

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • 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!

Join Tek-Tips
*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.
Jobs from Indeed

Link To This Forum!

Partner Button
Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

JScannell (Programmer) (OP)
3 Aug 12 10:39
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

judgeh59 (IS/IT--Management)
3 Aug 12 10:53
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

chgwhat (MIS)
4 Aug 12 12:00
I use pskill to kill a background process that I start with a bat file.
http://technet.microsoft.com/en-us/sysinternals/bb...

Tony ... aka chgwhat

When in doubt,,, Power out...

Helpful Member!  vacunita (Programmer)
4 Aug 12 12:23
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

mscallisto (TechnicalUser)
4 Aug 12 19:10
This may add to Vacunita's theory:

http://www.robvanderwoude.com/exit.php

the EXIT /B may help
JScannell (Programmer) (OP)
5 Aug 12 11:12
Thanks everyone. Adding exit to the batch file did the trick.

Jerry Scannell

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!

Back To Forum

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