×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Batch file query

Batch file query

Batch file query

(OP)
Can anybody shine any light on Batch files? I have a .bat file that will create a directory, move to that directory and start to run an exe that updates IE settings. It pops a message saying that you must reopen your browser for changes to be effective. You click ok on this, and then it returns to the DOS box, which has the word Finished in the title bar. It does not close.

I have tried a few things, like exit (Which works under NT) but cannot get anywhere. Any ideas anyone?

RE: Batch file query

Are you running the batch file from an icon or shortcut on the desktop/Start Menu? If so, right click on the icon and choose properties. Under one of the tabs, I can't remember which one, there is a check box for "Close Window on Completion" or something like that. Check that and it should close for you.

Hope this helps,
Paul Kincaid

RE: Batch file query

Or - when the DOS window is still open and says 'Finished' at the top, left-click on the Properties button in the toolbar (3rd from right, I think). There's a Close on Exit option in there that will write a PIF in the same file location that will close the DOS window after executing the BAT.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close