[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


Messages In This Thread
[Tutorial] Server restarter for Windows - by boylett - 12.03.2009, 18:54
Re: [Tutorial] Server restarter for Windows - by Burridge - 12.03.2009, 20:45
Re: [Tutorial] Server restarter for Windows - by [MM]Murphy - 12.03.2009, 21:04
Re: [Tutorial] Server restarter for Windows - by boylett - 13.03.2009, 08:28
Re: [Tutorial] Server restarter for Windows - by mascii - 13.03.2009, 10:31
Re: [Tutorial] Server restarter for Windows - by Scottism - 11.08.2009, 14:15
Re: [Tutorial] Server restarter for Windows - by Westie - 11.08.2009, 15:09

Forum Jump:


Users browsing this thread: 2 Guest(s)