Jump to content

Sign in to follow this  
=WBG=ati

-netlog batch file

Recommended Posts

i have found in the wiki page something about a rotation netlog file

http://community.bistudio.com/wiki/ArmA:_Server_configuration

This will record to a net.log file in the ArmA program directory, IP Address, Player name, mod's they are loading, net traffic and the Player ID which is very useful for dealing with troublemakers.

Be aware, the logs can grow large as they are not rotated, I would suggest doing this manually when the server is shutdown, or you could automate this in your startup batch file as follows:

@if exist net.log goto rotatelog else end

:rotatelog

set str=%date%

set tme=%time%

rem echo."%str%" "%tme%"

for /f "tokens=1,2,3* delims=." %%i in ("%str%") do set str=%%k%%j%%i

for /f "tokens=1,2,3* delims=:." %%i in ("%tme%") do set tme=%%i%%j%%k

rem echo."%str%" "%tme%"

move net.log .\NetLogs\%str%_%tme%_net.log

set str=

set tme=

has enyone tryed to get this to work... if yes how do yuo do it!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×