[Declude.JunkMail] OT: Help with WinZip command line
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 the batch file on 04/17/06, it may or may not include the log file for 04/16/06 depending on the final time stamp. Other than stopping services just before midnight and then restarting, what is the best way to always ensure that I am processing the correct day's files? John T eServices For You Seek, and ye shall find! --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail. The archives can be found at http://www.mail-archive.com.
RE: [Declude.JunkMail] OT: Help with WinZip command line
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 - http://www.penpublishing.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John T (Lists) Sent: Monday, April 17, 2006 12:44 PM To: Declude.JunkMail@declude.com Subject: [Declude.JunkMail] OT: Help with WinZip command line 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 the batch file on 04/17/06, it may or may not include the log file for 04/16/06 depending on the final time stamp. Other than stopping services just before midnight and then restarting, what is the best way to always ensure that I am processing the correct day's files? John T eServices For You Seek, and ye shall find! --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail. The archives can be found at http://www.mail-archive.com. --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail. The archives can be found at http://www.mail-archive.com.
Re: [Declude.JunkMail] OT: Help with WinZip command line
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 least one day before running the script. We wait a bit longer due to the occassional need to do additional reporting for the previous month. In your case, running the script on Monday evening or Tuesday morning for the previous Monday through Sunday filenames should work fine. Darin. - Original Message - From: John T (Lists) [EMAIL PROTECTED] To: Declude.JunkMail@declude.com Sent: Monday, April 17, 2006 1:44 PM Subject: [Declude.JunkMail] OT: Help with WinZip command line 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 the batch file on 04/17/06, it may or may not include the log file for 04/16/06 depending on the final time stamp. Other than stopping services just before midnight and then restarting, what is the best way to always ensure that I am processing the correct day's files? John T eServices For You Seek, and ye shall find! --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail. The archives can be found at http://www.mail-archive.com. --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail. The archives can be found at http://www.mail-archive.com.
RE: [Declude.JunkMail] OT: Help with WinZip command line
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 Cox Sent: Monday, April 17, 2006 11:07 AM To: Declude.JunkMail@declude.com Subject: Re: [Declude.JunkMail] OT: Help with WinZip command line 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 least one day before running the script. We wait a bit longer due to the occassional need to do additional reporting for the previous month. In your case, running the script on Monday evening or Tuesday morning for the previous Monday through Sunday filenames should work fine. Darin. - Original Message - From: John T (Lists) [EMAIL PROTECTED] To: Declude.JunkMail@declude.com Sent: Monday, April 17, 2006 1:44 PM Subject: [Declude.JunkMail] OT: Help with WinZip command line 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 the batch file on 04/17/06, it may or may not include the log file for 04/16/06 depending on the final time stamp. Other than stopping services just before midnight and then restarting, what is the best way to always ensure that I am processing the correct day's files? John T eServices For You Seek, and ye shall find! --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail. The archives can be found at http://www.mail-archive.com. --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail. The archives can be found at http://www.mail-archive.com. --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail. The archives can be found at http://www.mail-archive.com.
RE: [Declude.JunkMail] OT: Help with WinZip command line
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 list. Andrew 8) -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John T (Lists) Sent: Monday, April 17, 2006 11:13 AM To: Declude.JunkMail@declude.com Subject: RE: [Declude.JunkMail] OT: Help with WinZip command line 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 Cox Sent: Monday, April 17, 2006 11:07 AM To: Declude.JunkMail@declude.com Subject: Re: [Declude.JunkMail] OT: Help with WinZip command line 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 least one day before running the script. We wait a bit longer due to the occassional need to do additional reporting for the previous month. In your case, running the script on Monday evening or Tuesday morning for the previous Monday through Sunday filenames should work fine. Darin. - Original Message - From: John T (Lists) [EMAIL PROTECTED] To: Declude.JunkMail@declude.com Sent: Monday, April 17, 2006 1:44 PM Subject: [Declude.JunkMail] OT: Help with WinZip command line 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 the batch file on 04/17/06, it may or may not include the log file for 04/16/06 depending on the final time stamp. Other than stopping services just before midnight and then restarting, what is the best way to always ensure that I am processing the correct day's files? John T eServices For You Seek, and ye shall find! --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail. The archives can be found at http://www.mail-archive.com. --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail. The archives can be found at http://www.mail-archive.com. --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail. The archives can be found at http://www.mail-archive.com. --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail. The archives can be found at http://www.mail-archive.com.
[Declude.JunkMail] OT: Windows update (maybe) breaks mapping to Linux box?
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 vendor for our accounting software said they had another client having the same issues. I put an entry in the hosts file of the affected computers and the mapping began to work. Just in case any of you are in a similar situation. Marc --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail. The archives can be found at http://www.mail-archive.com.
Re: [Declude.JunkMail] OT: Help with WinZip command line
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, just loop through the past X days, calling the command line WinZip to add the file(s) for that date. Or even better, loop through and generate a list of filenames to add to the zip file, and make one call to add them all. Darin. - Original Message - From: John T (Lists) [EMAIL PROTECTED] To: Declude.JunkMail@declude.com Sent: Monday, April 17, 2006 2:12 PM Subject: RE: [Declude.JunkMail] OT: Help with WinZip command line 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 Cox Sent: Monday, April 17, 2006 11:07 AM To: Declude.JunkMail@declude.com Subject: Re: [Declude.JunkMail] OT: Help with WinZip command line 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 least one day before running the script. We wait a bit longer due to the occassional need to do additional reporting for the previous month. In your case, running the script on Monday evening or Tuesday morning for the previous Monday through Sunday filenames should work fine. Darin. - Original Message - From: John T (Lists) [EMAIL PROTECTED] To: Declude.JunkMail@declude.com Sent: Monday, April 17, 2006 1:44 PM Subject: [Declude.JunkMail] OT: Help with WinZip command line 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 the batch file on 04/17/06, it may or may not include the log file for 04/16/06 depending on the final time stamp. Other than stopping services just before midnight and then restarting, what is the best way to always ensure that I am processing the correct day's files? John T eServices For You Seek, and ye shall find! --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail. The archives can be found at http://www.mail-archive.com. --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail. The archives can be found at http://www.mail-archive.com. --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail. The archives can be found at http://www.mail-archive.com. --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail. The archives can be found at http://www.mail-archive.com.
Re: [Declude.JunkMail] OT: Help with WinZip command line
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 Hayer [EMAIL PROTECTED] To: Declude.JunkMail@declude.com Sent: Monday, April 17, 2006 2:21 PM Subject: Re: [Declude.JunkMail] OT: Help with WinZip command line John T (Lists) wrote: I am trying to create a batch file that will zip up a weeks worth of logs and then move that zip file. kake. w/pkzip command line... 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 the batch file on 04/17/06, it may or may not include the log file for 04/16/06 depending on the final time stamp. 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 archivename=g:\imail\spool\archive%%i%%j.zip # get todays log file name for /f Tokens=2-4 Delims=/ %%i in ('date /t') do set excludefilename=g:\imail\spool\sys%%i%%j.txt # -f is a switch to exclude file names PKZIP -f %excludefilename% %archivename% sys*.txt Didn't try it but at least its a start... -Nick ps - the more you save the more you will have to produce if you get served with a Discovery :) Other than stopping services just before midnight and then restarting, what is the best way to always ensure that I am processing the correct day's files? John T eServices For You Seek, and ye shall find! --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail. The archives can be found at http://www.mail-archive.com. --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail. The archives can be found at http://www.mail-archive.com. --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail. The archives can be found at http://www.mail-archive.com.
Re: [Declude.JunkMail] OT: Help with WinZip command line
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 to identify the log files and zips anything that is older than 3 day (so that I can review if something happened over the weekend). I then run the same command, but using delete instead of wzzip. Both of these commands are in a simple bat file that I call from windows scheduler. Hope it helps, Dean On 4/17/06, John T (Lists) [EMAIL PROTECTED] wrote: I am trying to create a batch file that will zip up a weeks worth of logsand then move that zip file. The problem I am having is that I want to zip the previous 7 days, butsometimes the last log is time stamped say 04/16/06 11:59 PM and sometimessay 04/17/06 12:00 AM. Because of that, if I run the batch file on 04/17/06, it may or may not include the log file for 04/16/06 depending on the finaltime stamp.Other than stopping services just before midnight and then restarting, whatis the best way to always ensure that I am processing the correct day's files?John TeServices For YouSeek, and ye shall find!---This E-mail came from the Declude.JunkMail mailing list.Tounsubscribe, just send an E-mail to [EMAIL PROTECTED], andtype unsubscribe Declude.JunkMail.The archives can be foundat http://www.mail-archive.com. -- __Dean Lawrence, CIO/PartnerInternet Data Technology888.GET.IDT1 ext. 701 * fax: 888.438.4381http://www.idatatech.com/ Corporate Internet Development and Marketing Specialists
[Declude.JunkMail] DLAnalyzer 5.0 Released
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 many new features including new reports like: Recipient Based Spam Reports, Test Quality Report that evaluates how effective the configured tests are on your system, Domain Executive Reports, and Domain Recipient Reports. In addition we have also added a new level of customization of the reports allowing you to change the look and feel of the report through the use of cascading style sheets. Report Samples: http://www.invariantsystems.com/dlanalyzer/reportsamples.htm Release Notes: http://www.invariantsystems.com/download/current/readme.txt Download: http://www.invariantsystems.com/dlanalyzer/download.asp Any questions let me know, Darrell --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail. The archives can be found at http://www.mail-archive.com.
RE: [Declude.JunkMail] OT: Help with WinZip command line
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 Compress2DayOldLogs.cmd file: 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 Best Regards Andy Schmidt Phone: +1 201 934-3414 x20 (Business) Fax:+1 201 934-9206 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of John T (Lists) Sent: Monday, April 17, 2006 02:13 PM To: Declude.JunkMail@declude.com Subject: RE: [Declude.JunkMail] OT: Help with WinZip command line 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 Cox Sent: Monday, April 17, 2006 11:07 AM To: Declude.JunkMail@declude.com Subject: Re: [Declude.JunkMail] OT: Help with WinZip command line 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 least one day before running the script. We wait a bit longer due to the occassional need to do additional reporting for the previous month. In your case, running the script on Monday evening or Tuesday morning for the previous Monday through Sunday filenames should work fine. Darin. - Original Message - From: John T (Lists) [EMAIL PROTECTED] To: Declude.JunkMail@declude.com Sent: Monday, April 17, 2006 1:44 PM Subject: [Declude.JunkMail] OT: Help with WinZip command line 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 the batch file on 04/17/06, it may or may not include the log file for 04/16/06 depending on the final time stamp. Other than stopping services just before midnight and then restarting, what is the best way to always ensure that I am processing the correct day's files? John T eServices For You Seek, and ye shall find! --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail. The archives can be found at http://www.mail-archive.com. --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail. The archives can be found at http://www.mail-archive.com. --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail. The archives can be found at http://www.mail-archive.com. --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail. The archives can be found at http://www.mail-archive.com.
RE: [Declude.JunkMail] OT: Help with WinZip command line
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 11:59:59 PM it will have a different date. John T eServices For You Seek, and ye shall find! --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail. The archives can be found at http://www.mail-archive.com.
RE: [Declude.JunkMail] OT: Help with WinZip command line
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 am looking for a universal solution. John T eServices For You Seek, and ye shall find! -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dean Lawrence Sent: Monday, April 17, 2006 11:36 AM To: Declude.JunkMail@declude.com Subject: Re: [Declude.JunkMail] OT: Help with WinZip command line 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 to identify the log files and zips anything that is older than 3 day (so that I can review if something happened over the weekend). I then run the same command, but using delete instead of wzzip. Both of these commands are in a simple bat file that I call from windows scheduler. Hope it helps, Dean On 4/17/06, John T (Lists) [EMAIL PROTECTED] wrote: 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 the batch file on 04/17/06, it may or may not include the log file for 04/16/06 depending on the final time stamp. Other than stopping services just before midnight and then restarting, what is the best way to always ensure that I am processing the correct day's files? John T eServices For You Seek, and ye shall find! --- This E-mail came from the Declude.JunkMail mailing list.To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail.The archives can be found at http://www.mail-archive.com. -- __ Dean Lawrence, CIO/Partner Internet Data Technology 888.GET.IDT1 ext. 701 * fax: 888.438.4381 http://www.idatatech.com/ Corporate Internet Development and Marketing Specialists
RE: [Declude.JunkMail] OT: Help with WinZip command line
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 archivename=g:\imail\spool\archive%%i%%j.zip # get todays log file name for /f Tokens=2-4 Delims=/ %%i in ('date /t') do set excludefilename=g:\imail\spool\sys%%i%%j.txt # -f is a switch to exclude file names PKZIP -f %excludefilename% %archivename% sys*.txt AH, use variables to set the date and then process by date. Now question, how does that work if say you run the script on 04/01/06? Will it recognize the day before as 03/31/06 or will it try to say it is 04/00/06? As Andrew knows, I am extremely poor on scripting and command line. FYI, I will not be around tonight or Tuesday so I may not respond until Wednesday morning. John T eServices For You Seek, and ye shall find! --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail. The archives can be found at http://www.mail-archive.com.
RE: [Declude.JunkMail] OT: Help with WinZip command line
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 eServices For You Seek, and ye shall find! --- This E-mail came from the Declude.JunkMail mailing list. To unsubscribe, just send an E-mail to [EMAIL PROTECTED], and type unsubscribe Declude.JunkMail. The archives can be found at http://www.mail-archive.com.
Re: [Declude.JunkMail] OT: Help with WinZip command line
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 17, 2006 7:37 PM Subject: RE: [Declude.JunkMail] OT: Help with WinZip command line 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 am looking for a universal solution. John T eServices For You "Seek, and ye shall find!" -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dean LawrenceSent: Monday, April 17, 2006 11:36 AMTo: Declude.JunkMail@declude.comSubject: Re: [Declude.JunkMail] OT: Help with WinZip command line 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 to identify the log files and zips anything that is older than 3 day (so that I can review if something happened over the weekend). I then run the same command, but using delete instead of wzzip. Both of these commands are in a simple bat file that I call from windows scheduler. Hope it helps, Dean On 4/17/06, John T (Lists) [EMAIL PROTECTED] wrote: I am trying to create a batch file that will zip up a weeks worth of logsand then move that zip file.The problem I am having is that I want to zip the previous 7 days, butsometimes the last log is time stamped say 04/16/06 11:59 PM and sometimessay 04/17/06 12:00 AM. Because of that, if I run the batch file on 04/17/06, it may or may not include the log file for 04/16/06 depending on the finaltime stamp.Other than stopping services just before midnight and then restarting, whatis the best way to always ensure that I am processing the correct day's files?John TeServices For You"Seek, and ye shall find!"---This E-mail came from the Declude.JunkMail mailing list.Tounsubscribe, just send an E-mail to [EMAIL PROTECTED], andtype "unsubscribe Declude.JunkMail".The archives can be foundat http://www.mail-archive.com. -- __Dean Lawrence, CIO/PartnerInternet Data Technology888.GET.IDT1 ext. 701 * fax: 888.438.4381http://www.idatatech.com/ Corporate Internet Development and Marketing Specialists
[Declude.JunkMail] IPlus Info Browser 4 SmarterMail
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 --- EVANS MARTIN [EMAIL PROTECTED] HOSTING: http://www.martek.net/ PROGRAMMING: http://www.martekware.com/ iPlus Info Browser - http://www.martek.net/Default.aspx?tabid=96 iPBs IMail Migration Tool, password browser, reporting suite make IPlus Info Browser something no IMail administrator should be without. iPB for SmarterMail coming soon! Send questions to [EMAIL PROTECTED]