Hallo Admin, On Fri, 7 May 2004 13:21:52 +0100GMT (7-5-04, 14:21 +0200, where I live), you wrote:
AAA> Anyone any ideas as to how to EASILY concatenate all "today's" log AAA> files? You could do that with a batch file. I did some testing and it worked all right (sort of). My batch file (called logall.bat) looks like this: @echo off g: cd\mail copy roelof\account.log+archief\account.log all.log sort all.log > sort.log del roelof\account.log del archief\account.log del all.log I've got two accounts, my main account and one for archiving purposes that's called 'archief', both are located in the 'mail' directory on my g: drive. I'm copying both account logs to one new file (you can do that with more than two files too) called all.log then I sort them alphabetically, the sort util (a dos util that still was included with W98, don't know whether that's still the case with XP) is text beased, so it sorts 10-5-2004 before 9-5-2004, but since you're interested in daily reports that won't be of any consequence to you, I guess. In the log entries, the dates are preceded with one character, a space for uninteresting items, an exclamation mark for errors, a '<' for incoming and '>' for outgoing messages, also I've seen some entries preceded with a plus or an asterix. This means that your entries will be sorted per type on date/time. In order to finish the batch file, I'm deleting the account and total logs after creating the sorted log. The sorted log will be overwritten the next time you run the batch file. I suppose this is easy enough, though you got to adjust it to your own paths and account names. You can read the sorted log with Notepad, in order to simplify that, I've associated *.log files with my Notepad. -- Groetjes, Roelof Disclaimer: Any opinion stated in this message is not necessarily shared by my budgies or rabbits. ________________________________________________ Current version is 2.10.03 | 'Using TBUDL' information: http://www.silverstones.com/thebat/TBUDLInfo.html

