View Single Post
Old
  (#8)
[NBK] G.I. Jerk is Offline
Senior Member
 
Posts: 292
Join Date: Apr 2002
Location: Calgary, Ab. CanaDUH
 Send a message via ICQ to [NBK] G.I. Jerk Send a message via MSN to [NBK] G.I. Jerk  
Default 10-21-2002, 11:48 PM

Quote:
Originally Posted by DogMeat
The buffering options for the logfile don't seem to work. Drop this into your MOHAA directory as moh.bat and edit as needed.

@echo off
echo DogMeat's NeverEnding MoHAA
:TOP
echo Backing up Log
cd main
copy qconsole.lo1 *.lo2
copy qconsole.lo0 *.lo1
copy qconsole.log *.lo0
cd ..
echo Starting MoHAA

start /wait MOHAA_server.exe +set ui_console 1 +set dedicated 1 +set cheats 0 +set developer 1 +exec servertfo.cfg
echo Restarting
goto TOP
Or he could even make a continuous log, time and date stamped per session....
(date/time method for 9x based DOS.... NT based DOS prolly ez'r to steal time via PROMPT)

@echo off


:TOP
ver|time|find "Current">$temp$.bat
echo set ctime=%%3>current.bat
call $temp$.bat

ver|date|find "Current">$temp$.bat
echo set cdate=%%4>current.bat
call $temp$.bat
del current.bat>nul
del $temp$.bat>nul

echo. >>master.log
echo. >>master.log
echo Logfile appended at %ctime% on %cdate% >>master.log
echo. >>master.log
type qconsole.log >>master.log

start /wait MOHAA_server.exe +set ui_console 1 +set dedicated 1 +set cheats 0 +set developer 1 +exec servertfo.cfg

goto top
  
Reply With Quote