
Originally Posted by
DutchenL
Can you do this every night at 0:00?
And works for Phoenix yeah?
Code:
@echo off
title Server Restarter
:start
set time=86400
start server.exe
:loop
cls
IF %time% GTR 0 (
set /a time=%time% - 1
set /a min=%time%/1440
echo (Server name) Will Restart In %time% Seconds.
echo (Server name) will Restart in %time% Seconds Which is %min% Minutes.
ping 127.0.0.1 -n 2 > NUL
goto loop
)
taskkill /f /im server.exe
cls
close server
goto start
That'll run every 24 hours, start it at midnight and it'll reboot every night at midnight.
Edit:
Yes it'll work for phoenix, it'd work for any application you could make it keep restarting your Skype or browser if you really wanted