uot;
>
>
>
>
> -Original Message-
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of
> Matt
> Sent: Wednesday, April 19, 2006 4:28 PM
>
> To: Declude.JunkMail@declude.com
> Subject: Re: [Declude.JunkMail] OT: Help with WinZip command line
>
&g
PROTECTED]] On Behalf Of Matt
Sent: Wednesday,
April 19, 2006 4:28
PM
To:
Declude.JunkMail@declude.com
Subject: Re:
[Declude.JunkMail]
OT: Help with WinZip command line
John,
I would suggest taking a second look at Dean's reply. The
"forfiles" command acts on the dat
find!"
-Original
Message-
From:
[EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Matt
Sent: Wednesday,
April 19, 2006 4:28
PM
To:
Declude.JunkMail@declude.com
Subject: Re:
[Declude.JunkMail]
OT: Help with WinZip command line
John,
I would suggest takin
+1 201 934-9206
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John T (Lists)
Sent: Wednesday, April 19, 2006 06:55 PM
To: Declude.JunkMail@declude.com
Subject: RE: [Declude.JunkMail] OT: Help with WinZip command line
What is defining %%f?
John T
eServices For
PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Matt
Sent: Wednesday, April 19, 2006 4:28 PM
To: Declude.JunkMail@declude.com
Subject: Re: [Declude.JunkMail]
OT: Help with WinZip command line
John,
I would suggest taking a second look at Dean's reply. The
"forfiles" command act
EMAIL PROTECTED]] On Behalf Of Andy Schmidt
Sent: Wednesday, April 19, 2006 3:26 PM
To: Declude.JunkMail@declude.com
Subject: RE: [Declude.JunkMail] OT: Help with WinZip command line
Hi John,
The FOR/DO will iterate through the directory listing using "ex*.log" and
then perform a WINZIP for e
yd=0%pd%) else (set yd=%pd%)
:PDSET
::AT THIS POINT YESTERDAY == %ym%\%yd%\%yy%
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of John T (Lists)
Sent: Wednesday, April 19, 2006 3:34 PM
To: Declude.JunkMail@declude.com
Subject: RE: [Declude.JunkMail] OT: Hel
; for each of youu log files in all of your subfolders.
>
>
> 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
find!"
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:Declude.JunkMail-
> [EMAIL PROTECTED] On Behalf Of John T (Lists)
> Sent: Wednesday, April 19, 2006 3:09 PM
> To: Declude.JunkMail@declude.com
> Subject: RE: [Declude.JunkMail] OT: Help with WinZip comman
:[EMAIL PROTECTED] On Behalf Of John T (Lists)
Sent: Wednesday, April 19, 2006 06:09 PM
To: Declude.JunkMail@declude.com
Subject: RE: [Declude.JunkMail] OT: Help with WinZip command line
> I just use the winzip command line tool every day to turn the 1 day
> old "log" file in
> 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 Compress2DayOld
y’s 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.
>
>
>
>
>
>style='font-size:9.0pt;font-family:Verdana;color:navy'>J
Hi John,
AH, use variables to set the date and then process by date.
simplicity is elegance :)
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?
Well it depends. What files will be su
nt: 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 s
> 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
eServ
> 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
> ar
ubject: 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:
> 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
ginal 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
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 f
"Nick Hayer" <[EMAIL PROTECTED]>
To:
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.
>
t; <[EMAIL PROTECTED]>
To:
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
"Se
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
ys
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 Win
ECTED] 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
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
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.
27 matches
Mail list logo