DrEvil Posted September 20, 2011 Share Posted September 20, 2011 Hi All, How do you all handle log rotation of TCadmin, TS3 and game server logs as they quickly get pretty out of hand? I have seen a helpful post from Studgeggle (here) where he has a script runnning as a scheduled task, but that can realistically only take care of TCadmin's logs, what about restricting the sizes of clients gameserver logs and TS3? It is of course not practical to be adding gameservers logs to a script/.bat each time you add/remove a gameserver. Any help / suggestions much appreciated. Best, Evil Link to comment Share on other sites More sharing options...
LFA Posted September 20, 2011 Share Posted September 20, 2011 Create a batch file with this command. It deletes all files with .log extension older than 10 days in C:\UserFiles and all subfolders. forfiles -p "C:\UserFiles" -s -m *.log -d -10 -c "cmd /c del @path" Link to comment Share on other sites More sharing options...
DrEvil Posted September 21, 2011 Author Share Posted September 21, 2011 Thanks very much, I will give it a try. Best, Evil Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.