Discussion Locked

Can you close a DOS window in Win95/98?

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

The following small batch file (password.bat) is executed by double clicking on the file from Windows Explorer. It runs, but doesn't close. Is there a DOS command that will close the DOS window and allow the user to continue on in Windows. I've tried a number of options but with no success.

@echo off
del c:\win95\*.pwl

exit

5 replies

by syscokid

I don't know about a DOS command, but in Win 95/98 if you right-click on the file, click on Properties, and go to the Program tab, there's a box called "Close on Exit". Make sure that is checked, and your DOS window will close after the batch file is run.

Hope this helps!

by nettek

I don't believe you can select "close on exit" from the batch file properties. The alternative is to place the batch file somewhere else and create a shortcut to it. Place the shortcut where you originally had the batch file, and users can execute the batch file by using the shortcut. Then go to the properties of the shortcut, programs tab, and check "close on exit". The shortcut window will then close when finished.

This discussion is closed to new replies.