xmoondockx
Member
I wrote a .bat for my jerky server admin helpers.
One click and all are happy.
I use it in combine with BEC for the 6h restart.
Notepad++ or notepad - save it as .bat
Copy + paste for the win if you like it.
May you will kill something else or add a new cmd order
taskkill /im arma2oaserver.exe
taskkill /im Gotcha_Antihack.exe
taskkill /im bec.exe
timeout 10 // start in 10 second the order
:: clean the server..
set cleandir="C: Edit me"
cd /d %cleandir%
timeout 5
:: Vehicle1..
set vehiclespawnpath="C:\Users\Administrator\Desktop\fix me"
cd /d %dayzpath%
start "" "_db_vehicles_clean-up.bat"
timeout 5
:: Vehicle2..
set vehiclespawnpath="C:\Users\Administrator\Desktop\fix me"
cd /d %dayzpath%
start "" "_db_spawn_vehicles.bat"
timeout 5
:: start the server..
set dayzpath="C:\Program Files (x86)\Bohemia Interactive\ArmA 2"
cd /d %dayzpath%
start "" "serverstart.bat"
timeout 65
:: start bec
set becpath="C:\Program Files (x86)\Bohemia Interactive\ArmA 2\dayz_1.panthera2\BattlEye\Bec"
cd /d %becpath%
start "" "bec.exe" -f Config.cfg
timeout 50
:: start Gotcha
set antihaxpath="C:\Users\Administrator\Desktop\Gotcha_Antihack_CommunityAlpha_082\"
cd /d %antihaxpath%
start "" "Gotcha_Antihack.exe"
cls
@exit
Simple
/Taskkill for all your server stuff /Bec/Gotcha doesnt work/Armaoa.exe and and and...
Createvehicle /One for db cleanup / Second for new spawns-respawns
Path !
Thats the tricky - you have to edit this and found your own servrestart.bat
Timeout may my root is not the best, so it takes a moment before arma starts.
Simple and last step, create a folder call it Click me
Copy the db_createvehicle and paste.
done
Edit your BEC add a new job with cmd #shoutdown
Be sure you got the rigt path or it didnt works.
One click and all are happy.
I use it in combine with BEC for the 6h restart.
Notepad++ or notepad - save it as .bat
Copy + paste for the win if you like it.
May you will kill something else or add a new cmd order
taskkill /im arma2oaserver.exe
taskkill /im Gotcha_Antihack.exe
taskkill /im bec.exe
timeout 10 // start in 10 second the order
:: clean the server..
set cleandir="C: Edit me"
cd /d %cleandir%
timeout 5
:: Vehicle1..
set vehiclespawnpath="C:\Users\Administrator\Desktop\fix me"
cd /d %dayzpath%
start "" "_db_vehicles_clean-up.bat"
timeout 5
:: Vehicle2..
set vehiclespawnpath="C:\Users\Administrator\Desktop\fix me"
cd /d %dayzpath%
start "" "_db_spawn_vehicles.bat"
timeout 5
:: start the server..
set dayzpath="C:\Program Files (x86)\Bohemia Interactive\ArmA 2"
cd /d %dayzpath%
start "" "serverstart.bat"
timeout 65
:: start bec
set becpath="C:\Program Files (x86)\Bohemia Interactive\ArmA 2\dayz_1.panthera2\BattlEye\Bec"
cd /d %becpath%
start "" "bec.exe" -f Config.cfg
timeout 50
:: start Gotcha
set antihaxpath="C:\Users\Administrator\Desktop\Gotcha_Antihack_CommunityAlpha_082\"
cd /d %antihaxpath%
start "" "Gotcha_Antihack.exe"
cls
@exit
Simple
/Taskkill for all your server stuff /Bec/Gotcha doesnt work/Armaoa.exe and and and...
Createvehicle /One for db cleanup / Second for new spawns-respawns
Path !
Thats the tricky - you have to edit this and found your own servrestart.bat
Timeout may my root is not the best, so it takes a moment before arma starts.
Simple and last step, create a folder call it Click me
Copy the db_createvehicle and paste.
done
Edit your BEC add a new job with cmd #shoutdown
Be sure you got the rigt path or it didnt works.