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.

Reply via email to