[Declude.JunkMail] OT: Help with WinZip command line

2006-04-17 Thread John T \(Lists\)
I am trying to create a batch file that will zip up a weeks worth of logs and then move that zip file. The problem I am having is that I want to zip the previous 7 days, but sometimes the last log is time stamped say 04/16/06 11:59 PM and sometimes say 04/17/06 12:00 AM. Because of that, if I run

RE: [Declude.JunkMail] OT: Help with WinZip command line

2006-04-17 Thread John Dobbin
Don't run your script at midnight but at 12:30. This will give the server plenty of time. There is a good sample script here: http://www.iisfaq.com/Default.aspx?tabid=2809 It doesn't use WinZip but creates MS cab files. Thanks John Dobbin Pen Publishing Interactive -

Re: [Declude.JunkMail] OT: Help with WinZip command line

2006-04-17 Thread Darin Cox
Hi John, If you use daily IIS logfiles I would go by filename instead of time stamp. Our log archival script is scheduled for a few days (5) afterwards to zip up the previous month's files. You don't need to wait that long, but since IIS sometimes locks the file for a while, I would wait at

RE: [Declude.JunkMail] OT: Help with WinZip command line

2006-04-17 Thread John T \(Lists\)
Problem is the file names are unique by date, not by day, so to use that you would have to create a dynamic script, correct? John T eServices For You Seek, and ye shall find! -Original Message- From: [EMAIL PROTECTED] [mailto:Declude.JunkMail- [EMAIL PROTECTED] On Behalf Of Darin

RE: [Declude.JunkMail] OT: Help with WinZip command line

2006-04-17 Thread Colbeck, Andrew
Well... Once you kick start the procedure by zipping all of the previous folders, then all you have left is 7 days worth of logs, so you can bag the prev x days logic and just use dec*.log as the parameter. Or likewise, tell the script to do the previous 8 days and you'll always get the full

[Declude.JunkMail] OT: Windows update (maybe) breaks mapping to Linux box?

2006-04-17 Thread Marc Catuogno
Sorry for the quick OT post, but I don't have time to research it further. But in one of our offices we have windows XP machines mapped to shared drives on a Linux Red Hat box that suddenly couldn't be access. After the latest auto update they could only see the Red Hat PC by IP address. The

Re: [Declude.JunkMail] OT: Help with WinZip command line

2006-04-17 Thread Darin Cox
Sure. A simple VBS script can determine the current date, and back up X days to determine the filename(s) to be added. Admittedly this is much simpler on a monthly schedule that a weekly schedule, since you could just go by the first part of the file name with wildcards. However, in your case,

Re: [Declude.JunkMail] OT: Help with WinZip command line

2006-04-17 Thread Darin Cox
Good point. Add to the weekly file daily instead of running just once at the end of the week... assuming you don't need the files for reporting in the interim. Then you just need to have a function to determine the zip file name for the week. Darin. - Original Message - From: Nick

Re: [Declude.JunkMail] OT: Help with WinZip command line

2006-04-17 Thread Dean Lawrence
John, I run the following 2 commands on my daily IIS log files. forfiles /p c:\clients /s /d -3 /m ex*.log /c cmd /c wzzip @fname.zip @file forfiles /p c:\clients /s /d -3 /m ex*.log /c cmd /c del @file I keep each of my clients log files underneath their own client directory so I use forfiles

[Declude.JunkMail] DLAnalyzer 5.0 Released

2006-04-17 Thread Darrell \([EMAIL PROTECTED])
DLAnalyzer 5.0 has been released. DLAnalyzer is a comprehensive reporting tool that integrates both Junkmail and Virus statistics into one report. Some of the features require the Enterprise or Standard version, but we also have a FREE LITE version available. With version 5.0 we have added

RE: [Declude.JunkMail] OT: Help with WinZip command line

2006-04-17 Thread Andy Schmidt
Hi John, I just use the winzip command line tool every day to turn the 1 day old log file into a zip file by the SAME name in the SAME location. This way, you can simply move anything *.zip to a different drive, while *.log are current log files. Here is the content of my

RE: [Declude.JunkMail] OT: Help with WinZip command line

2006-04-17 Thread John T \(Lists\)
C: CD C:\WINNT\system32\LogFiles\ FOR /R %%f in (ex*.log) do C:\Program Files\WinZip\WZzip.exe -m -ex -Td01 %%~dpnf.zip %%f But isn't the problem that the -T switch looks at the file modified date and if the final line is at 12:00 AM then it will have one date but if the final line is at

RE: [Declude.JunkMail] OT: Help with WinZip command line

2006-04-17 Thread John T \(Lists\)
But again, if Windows sees the file as 12:00 AM 04/17/06 rather than 11:59:59 PM 04/16/06 and you are running the script on 04/17/06 then it will not include yesterdays log as Windows says it was modified today. FYI, I am doing this for IIS logs, KIWI logs as well as Declude logs so I

RE: [Declude.JunkMail] OT: Help with WinZip command line

2006-04-17 Thread John T \(Lists\)
how about this. Always zip up the logs after midnight. Then for sure the prev day is complete and you need to ignore todays. [I am presuming you will only have the 7 days in the dir to be zipped] # set archive filename file name for /f Tokens=2-4 Delims=/ %%i in ('date /t') do set

RE: [Declude.JunkMail] OT: Help with WinZip command line

2006-04-17 Thread John T \(Lists\)
Or likewise, tell the script to do the previous 8 days and you'll always get the full list. Problem is I will then have 2 zip files with the same log, one incomplete and when I have Sawmill update its database that will cause an issue. I am trying to fully automate this process. John T

Re: [Declude.JunkMail] OT: Help with WinZip command line

2006-04-17 Thread Darin Cox
Don't do it by time stamp, do it by determining the filenames and adding them appropriately. That's what we do and it works perfectly, though we do it monthly instead of weekly. Darin. - Original Message - From: John T (Lists) To: Declude.JunkMail@declude.com Sent: Monday, April

[Declude.JunkMail] IPlus Info Browser 4 SmarterMail

2006-04-17 Thread Evans Martin
At MartekWare we have started development on iPB for SmarterMail. Were still in the earliest stages of development but would like to involve the community in the process. If you would be interested in participating in our beta, please contact me off list. Thank You, Evans Martin ---