Hey Guys!
Dingus, a member of the SDA Clan, is a professional programmer, and has made this very awesome bat file, and gave me permission to share it.
This Bat File will save every single Bat File into a Directory of YOUR Choosing. So, you can now save all your Server Logs!
This also acts as a Crash Log, and an Automatic Server Restart in the Event of a Crash.
First of all, this is Ours Currently.
Code:
:top
d:
cd\UTServers\UnrealTournament\System
ucc server CTF-2Pyramids][?Mutator=MapVoteLA12.BDBMapVote multihome=67.19.181.52 ini=SERVER.INI log=ucc.log
for /f "tokens=1,2" %%u in ('date /t') do set d=%%v
for /f "tokens=1" %%u in ('time /t') do set t=%%u
if "%t:~1,1%"==":" set t=0%t%
set timestr=%d:~6,4%%d:~3,2%%d:~0,2%%t:~0,2%%t:~3,2%
copy ucc.log C:\ServerCrashLogs\main\ucccrash%timestr%.log
copy ucc.log ucccrash.log
goto top
Now there are some Variables you need to change. Most of which is Obvious, but I will stay it for the sake of everyone.
d:
<== Drive in Which the Server is on.
cd\UTServers\UnrealTournament\System
<== Folder Directory of the Server
ucc server CTF-2Pyramids][?Mutator=MapVoteLA12.BDBMapVote multihome=67.19.181.52 ini=SERVER.INI log=ucc.log
<== Server Command Line
for /f "tokens=1,2" %%u in ('date /t') do set d=%%v
for /f "tokens=1" %%u in ('time /t') do set t=%%u
if "%t:~1,1%"==":" set t=0%t%
set timestr=%d:~6,4%%d:~3,2%%d:~0,2%%t:~0,2%%t:~3,2%
copy ucc.log C:\ServerCrashLogs\main\ucccrash%timestr%.log
<== Directory in which you want the Logs to Go.
copy ucc.log ucccrash.log
goto top
Be sure to post any comments or Suggestions!
Enjoy!
Dingus and Baiter
www.clansda.com