Discussion Locked

Close batch file on exit in Win2000 pro

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
I run a batch file script from tthe startup folder in Windows 2000 pro. When the batch finishes, it does not close on exit. I don't see the option to close the cmd.exe window when it finishes. Is there a way to close the command prompt window automatically?

5 replies

by joseph moore

At the end of your batch file just put

EXIT

That will close the Command Prompt window.

hope this helps

by rohad

Hi,
if you call the batch call it this way:
call yourbatch.cmd /c
but EXIT in the end works fine as well.
Good Luck

This discussion is closed to new replies.