[Tutorial] Server restarter for Windows -
boylett - 12.03.2009
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.
Re: [Tutorial] Server restarter for Windows -
Burridge - 12.03.2009
wow, thats a decent TUT, thanks
Re: [Tutorial] Server restarter for Windows -
[MM]Murphy - 12.03.2009
Nice Tutorial.
I dont really need it, but i think other do.
Keep up things like this
Re: [Tutorial] Server restarter for Windows -
boylett - 13.03.2009
Np, i originally used this to keep my php bot online if it crashed :P
Re: [Tutorial] Server restarter for Windows -
mascii - 13.03.2009
Wow thankyou!
This is exactly what I'm after
Thanks again
Re: [Tutorial] Server restarter for Windows -
Scottism - 11.08.2009
Uhh what do you mean "a file"? What type of file? Where do I put this?
Re: [Tutorial] Server restarter for Windows -
Westie - 11.08.2009
Good job bumping a year and a half old topic. He means a file, a .bat file. Next time read.