You are an unregistered user, you can register here
Navigation

Information

Site

Donations
If you wish to make a donation you can by clicking the image below.


 
Go Back   The Unreal Admins Page > Forums > Unreal Admins > General > Tips & Tutorials Followups

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Unread 22nd September, 2005, 12:05 AM
Baiter's Avatar
Baiter Baiter is offline
Holy Shit!!
 
Join Date: Apr 2004
Location: Houston, TX
Posts: 1,566
Default The Ultimate Bat File

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
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:06 PM.


 

All pages are copyright The Unreal Admins Page.
You may not copy any pages without our express permission.