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
Name: John Date: March 16, 2000 at 06:51:46 Pacific
Comment:
How do I close the dos window after running a batch file.
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
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.
Summary: I thank you for the information. I'll check out the web site. I will try it out after the holiday. I take exception to your statement though. Quote: "well u didnt search very well." I typed in severa...