[Tutorial] Server restarter for Windows
#1

I noticed there was no tutorial on a server restarter for Windows, so here is one

A restarter on Windows is much simpler than on Linux. Just follow these instructions:

Step 1
Create a file called start.bat in your server folder

Step 2
In that file, write in these contents:
Code:
:START
samp-server.exe
GOTO START
Change samp-server.exe to the name of your server executable if you've changed its name

Done
Thats it! Now, just run start.bat instead of samp-server.exe. You can still type commands into the DOS window. If the server closes though, it will restart instantly.

Note
If you run start.bat, and you get spammed by messages in the DOS window, it probably means you haven't correctly named your server executable in start.bat.
Also note that typing "exit" in the server window will make the server restart instead of closing. To close it, you must stop the start.bat process by pressing the [X] button.
Reply
#2

wow, thats a decent TUT, thanks
Reply
#3

Nice Tutorial.
I dont really need it, but i think other do.

Keep up things like this
Reply
#4

Np, i originally used this to keep my php bot online if it crashed :P
Reply
#5

Wow thankyou!
This is exactly what I'm after
Thanks again
Reply
#6

Uhh what do you mean "a file"? What type of file? Where do I put this?
Reply
#7

Good job bumping a year and a half old topic. He means a file, a .bat file. Next time read.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)