How to close a bat file
Each operating system may react in its own way to any of these events. And often there is a difference between ending batch file execution and closing the batch file's console window.
After the batch file has executed its last line of code it will stop running, unless the last line contained a GOTO command forcing it to re-execute some of its previous code. When the batch file stops running it will return control to the command processor.
Learn more Closing multiple PC programs with a batch file requires you to know mostly about the command "taskkill". It is not quite hard and you can learn to do it yourself in about 5 minutes! Log in Social login does not work in incognito and private browsers. Please log in with your username or email to continue. No account yet? Create an account. Edit this Article. We use cookies to make wikiHow great. By using our site, you agree to our cookie policy.
Cookie Settings. Learn why people trust wikiHow. Download Article Explore this Article Steps. Related Articles. Active 4 years, 2 months ago.
Viewed 9k times. I know this question has been asked before, but I haven't seen any working answers yet. Dennis vd Eijnde. Dennis vd Eijnde Dennis vd Eijnde 2 2 gold badges 4 4 silver badges 14 14 bronze badges. I found a way to get rid of the messagebox, so the automated enter isn't needed anymore. I still would like to know how you can exit a specific file with batch code. Which other solution did you try? In what way did that not work for your case?
Couldn't get code in the comment. Updating the question is the proper way to add details. Add a comment. Active Oldest Votes. I can then just do this to kill it. CreateObject "WScript. Shell" ; WshShell. SendKeys WScript. Arguments 0 ;. Gerhard Gerhard
0コメント