Alliedassault           
FAQ Calendar
Go Back   Alliedassault > Lounge > Tech Questions & Problems
Reload this Page Server restart / log archive scripts for Windows MOH:AA
Tech Questions & Problems Ask our resident experts about any military shooter game server administration and other technical issues.

Reply
 
Thread Tools Display Modes
Old
  (#1)
oop is Offline
Junior Member
 
Posts: 5
Join Date: Aug 2002
 Send a message via ICQ to oop  
Default 12-18-2002, 02:16 PM

I use a similar type script. But I add it as a PreService executable on FireDaemon so basically whenever the server starts/restarts, the existing qconsole.log gets renamed to something like qconsole-Tue-12-17-2002-9h00pm.log

renameConsole.bat:

@echo off
for /f "tokens=1-4 delims=/ " %%a in ('date /t') do (set weekday=%%a& set month=%%b& set day=%%c& set year=%%d)
for /f "tokens=1-2 delims=: " %%d in ('time /t') do (set hour=%%d& set minutes=%%e)
ren qconsole.log "qconsole-%weekday%-%month%-%day%-%year%-%hour%h%minutes%m.log"
  
Reply With Quote
Reply



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.12 by ScriptzBin
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBulletin Skin developed by: vBStyles.com
© 1998 - 2007 by Rudedog Productions | All trademarks used are properties of their respective owners. All rights reserved.