Computing.Net > Forums > Disk Operating System > Exit Dos after running batch file

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Exit Dos after running batch file

Reply to Message Icon

Name: John
Date: March 16, 2000 at 06:51:46 Pacific
Comment:

How do I close the dos window after running a batch file.

Any help is greatly appreciated.



Sponsored Link
Ads by Google

Response Number 1
Name: marvin
Date: March 16, 2000 at 07:35:47 Pacific
Reply:

use "exit" as the last command in the batch file.


0

Response Number 2
Name: browser
Date: March 16, 2000 at 07:39:26 Pacific
Reply:

Right click on the MS-DOS icon. Select Properties, click on the Program tab, put a check in the check-box for Close On Exit.

This should do it.


0

Response Number 3
Name: browser
Date: March 16, 2000 at 07:42:28 Pacific
Reply:

PS Be sure to click OK after checking the box, before closing the window so the change will be retained.


0

Response Number 4
Name: Ryan Cooley
Date: March 18, 2000 at 15:29:47 Pacific
Reply:

Ignore the above suggestion...They just don't know any better. To close the DOS window after completion of the batch file, the last line of the batch file should be CLS


That's all you need to do.

0

Response Number 5
Name: Tumbong
Date: March 19, 2000 at 16:44:04 Pacific
Reply:

RYAN COOLEY is an IDIOT, ignore him and his stupid tips for the rest of his life.
CLS only clears the screen. to close a dos window in win9x, the last line in a batch file should be EXIT. i repeat,


0

Related Posts

See More



Response Number 6
Name: Tumbong
Date: March 19, 2000 at 16:45:03 Pacific
Reply:

RYAN COOLEY is an IDIOT, ignore him and his stupid tips for the rest of his life.
CLS only clears the screen. to close a dos window in win9x, the last line in a batch file should be EXIT. i repeat, RYAN COOLEY is an IDIOT!


0

Response Number 7
Name: ciphen
Date: June 22, 2000 at 19:38:55 Pacific
Reply:

you guys are all wrong and Ryan cooley was almost right. I quote from microsoft support centre: http://support.microsoft.com/support/kb/articles/Q122/5/14.asp?LN=EN-US&SD=gn&FR=0

If you are running a batch file, you can close the MS-DOS window by adding the following lines to the end of the batch file:

echo off
cls
-----end paste--------
this echo off and then cls causes some error level in command.com that causes it to close.
give it a try.


0

Response Number 8
Name: Ryan Cooley's a Hero
Date: August 16, 2000 at 18:14:09 Pacific
Reply:

Ryan Cooley is the BOMB! That echo off, cls trick worked perfectly!!

EVERQUEST RULES!


0

Sponsored Link
Ads by Google
Reply to Message Icon

printerdriver for wordper... invalid SGE401 driver



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Exit Dos after running batch file

Run Batch File Invisible/Stealth www.computing.net/answers/dos/run-batch-file-invisiblestealth/14270.html

What is >nul mean do in a batch file www.computing.net/answers/dos/what-is-nul-mean-do-in-a-batch-file/197.html

What does >nul do in a batch file www.computing.net/answers/dos/what-does-nul-do-in-a-batch-file/198.html