Closing batch file in Win98

Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

dcavalla

Thread Starter
Joined
Feb 9, 2005
Messages
1
Using the Novell Login Script I call a batch file that checks for a specific application and if that application is not present it installs it. The problem is that the dos window does not close automatically. Does anyone know what I can add to the batch file that will close the dos window after the batch file runs. The EXIT command does not work. Thank you.
 

JohnWill

Retired Moderator
Joined
Oct 19, 2002
Messages
106,425
The exit command is the classic way to close the window. I suspect that for some reason, the batch job is not continuing to the EXIT command.
 
Joined
Apr 11, 2003
Messages
1,649
You can still get the batch file to close on Exit by creating a shortcut to the .bat file. Right click its Properties and from the Program tab check "close on exit".

Another option is to put in the last line of the batch file instead of "exit":

cls

It's a dos command for clearing the screen.
 
Status
This thread has been Locked and is not open to further replies. Please start a New Thread if you're having a similar issue. View our Welcome Guide to learn how to use this site.

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

As Seen On
As Seen On...

Welcome to Tech Support Guy!

Are you looking for the solution to your computer problem? Join our site today to ask your question. This site is completely free -- paid for by advertisers and donations.

If you're not already familiar with forums, watch our Welcome Guide to get started.

Join over 807,865 other people just like you!

Latest posts

Staff online

Top