Shut down via batch file

Aesirkin

New member
Is there a correct way to shut down a public server via command prompt on Windows?  I can do a net stop or taskkill, but I'm concerned about the effect of doing that if users are still connected.

 
You will want to use a 3rd Party server manager. There is a Pinned thread in this very section regarding them.

 
Thanks.  I considered that option.  However, I'm familiar and comfortable with batch files, and I was hoping to avoid adding any unnecessary software to the server as every time I add something it drops my benchmarks noticeably.  So I figured if it's possible to do at the command line I'd try that route first.

 
taskkill is definitely the wrong way IMHO.

I use the "expect" tool on linux to connect to the telnet port and issue the shutdown command there. It seems there are equivalent tools to "expect" for windows as well, search for "expect windows"

 
Back
Top