[Release] Server Auto Restart

Insert this into run.bat

:loop
timeout /t 1
@RD /S /Q “C:\FXServer\ServerData\cache”
start C:\FXServer\run.cmd +exec server.cfg
timeout /t 14400 >null
taskkill /f /im FXServer.exe >null
goto loop

then go out drinking with friends celebrating your new freedom

3 Likes