rootbear75 Posted May 16, 2008 Report Posted May 16, 2008 (edited) well, me and samapico were having a discussion today and yesterday, and i was complaining how i never know when my logs are, and the logmaker program already out there f***ed up my profile.bak, so he went and made this batch file. Its extremely simple, renaming the log to %date% the only bug we found is that depending on how you have your computer date and time formatted, it might or might not work for you.and that it renames the LAST session the current date and time.Let us know what you think... Instructions:Download file and rename to filename.batEdit the settings in Notepad or your favorite simple text editor.Execute and enjoyLogmanager.txt Edited May 16, 2008 by Samapico Samapico - Fixed attachment
Samapico Posted May 16, 2008 Report Posted May 16, 2008 Correction: It will work in all cases...However, depending on your system settings, log files might end up with names like "log Fri 05/16/2008.txt" Also, since this is executed BEFORE running continuum, it will rename your latest session.log to the current date... so it's not very accurate.Example, if you play today, your log will be session.log. If you play in 2 weeks again, it will rename that last session.log to . An alternative I'm working on now is simply to append something whenever a new session starts, like: Samapico> blahblahblahblah I'm out BYE (end of a session would be here) New session: - Log file open: session.log <-- this line is added by continuumWelcome to some zone, yay This would be a part of my session.log file. So it would make searching already a bit more efficient... Is it possible to read the creation date of a file in a batch file? I could read the session.log creation date, and rename it with that date So yeah... logmaker works fine for me, for one because Continuum is installed in C:\Jeux\Continuum for me, which has no spaces in it... Some people reported problems with it caused by the space in 'Program Files'. And it screws around with the profile.dat file, often removing other auto-messages and such. So a simple batch file shortcut could very well do the job I think.I'd like some suggestions on how it could do it... and keep in mind this is a batch file, so it's pretty limited. One idea was to have the batch file wait for continuum to end, then rename the log file. But this would leave the command prompt window visible all that time, which is ugly. One possible solution I thought of would be to write a small C program that executes the batch file in hidden mode and closes. So the batch file process would stay alive all that time, waiting for continuum to end, but no window would be visible. Oh, I just realised there was a bug in what root uploaded heh... fixed.
»Maverick Posted May 18, 2008 Report Posted May 18, 2008 uhhh yea, I'll just stick to my logmaker which is working fine for years and years now
Samapico Posted May 18, 2008 Report Posted May 18, 2008 me too, honnestly but some people might find a use for this I guess... even if it's just a 'click once in a while to split your log file' thing, could save some time to people. Either way, I'm not spending more time on this lol
Recommended Posts