Jump to content
Sign in to follow this  
alduric

Server .bat file - Auto restart / Crash auto restart

Recommended Posts

Hello guys. Im runing own DayZ server. I made bat file to make it easy auto restart. But i have problem with server crash'es. My bat file doing nothing at the moment. I tried to figure it out but without any succes. I know its possible, but ppl wont share >.>  Im asking for help with modify my bat file to add anti crash restart. Here is my bat file, it start server, count restarts, and restart game server every 4 hours.

@echo off
color 0a
title DayZ SA Server
C:\Windows\System32\mode con cols=50 lines=3 >nul
set /a var=0
:loop 
echo Serwer dziala                            
start "DayZServer_x64" "C:\Program Files (x86)\Steam\steamapps\common\DayZServer\DayZserver_X64.exe" -config=serverDZ.cfg -freezecheck -port=27015 "-profiles=C:\Users\Administrator.WIN-9DFIPBII98O\Documents\DayZ" -noFilePatching "-BEpath=C:\Program Files (x86)\Steam\steamapps\common\DayZServer\battleye" -cpuCount=4
timeout /t 14400 >null              
taskkill /f /im "DayZserver_X64.exe" >null  
timeout /t 7 >null  
set /a var+=1    
echo Liczba restartow serwera %var% 
goto loop

 

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×