lets release a simple tool to do server maint
First of all you need to have a little knowledge about winows
This tool use CMD file and windows CronJob ( Shedule Task )
ok lets explain how to do it
on your desktop or any other place , right click and create a new TXT file
open the TXT fie and fill in the below information
Code:
@ echo off title Server Maint color 90 echo Server maint in progress taskkill /f /im AccountServer.exe waitfor /t 2 Closing taskkill /f /im MsgServer2.700.exe waitfor /t 2 Closing taskkill /f /im npc.exe waitfor /t 2 Closing START /D "C:\Documents and Settings\Administrator\Desktop\server\ACCServer" AccountServer.exe waitfor /t 10 AccountServer START /D "C:\Documents and Settings\Administrator\Desktop\server\GameServer" MsgServer2.700.exe waitfor /t 30 MsgServer START /D "C:\Documents and Settings\Administrator\Desktop\server\GameServer" npc.exe waitfor /t 30 npc echo Server Maint Completed exit
Code:
taskkill /f /im AccountServer.exe
Change the AccountServer.exe to the name of the program
You can see the program names in task manager
in my case it is called AccountServer.exe ( notice caps ?)
fill that in for the NPC / MessageServer and AccountServer
if that is done , lets move to the next step
Code:
START /D "C:\Documents and Settings\Administrator\Desktop\server\ACCServer" AccountServer.exe
"c:/....." Your location of your server MAP
AccountServer.exe = The name of the program ( no quotes )
Change them to the right value as above
Code:
waitfor /t 10 AccountServer
Leave those value's as basic exept if your server is heavyer , then adjust the value as needed ( message server on 120 is recommerd )
Safe the file and rename it to maint.BAT
Now lets set up the automaint tool
Open Sheduled Tasks ( control panel / sheduled tasks -> new task )
There you can follow the wizzard and click on next
on the screen it ask you to select a file , click on browse and select your fresh created BAT file
Now Select Weekly as option
Setup the time and the days you like to run the command
as soon that is done , then you got your auto maint tool
it seems a lot of work , but it is easy to be done
Please note , if it does not work , then follow the guide again as NOTHING can go wrong if you provide the right value's (keep in mind that "waitfor /t 10" -> time it waits before it continue to next command )
enjoy
Greetings From PowerChaos






