1. Computer problem? Tech Support Guy is completely free -- paid for by advertisers and donations. Click here to join today! If you're new to Tech Support Guy, we highly recommend that you visit our Guide for New Members.

Closing batch file in Win98

Discussion in 'All Other Software' started by dcavalla, Feb 9, 2005.

Thread Status:
Not open for further replies.
Advertisement
  1. dcavalla

    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.
     
  2. JohnWill

    JohnWill Retired Moderator

    Joined:
    Oct 19, 2002
    Messages:
    106,418
    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.
     
  3. Squashman

    Squashman Trusted Advisor

    Joined:
    Apr 4, 2003
    Messages:
    19,786
    You guys dont use ZenWorks?
     
  4. dr20

    dr20

    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.
     
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 733,556 other people just like you!

Loading...
Similar Threads - Closing batch file
  1. openreel
    Replies:
    0
    Views:
    183
Thread Status:
Not open for further replies.

Short URL to this thread: https://techguy.org/328719

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice