%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: Help
half 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 each item.
The
:[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 acts on the date of the file
-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 You
Seek, and ye
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 taking a s
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 date of the file and no
: Wednesday, April 19, 2006 4:28 PM
To: Declude.JunkMail@declude.com
Subject: Re: [Declude.JunkMail] OT: Help with WinZip command line
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
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
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
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
://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
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
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
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
]
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
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
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
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
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
: [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
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
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
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
23 matches
Mail list logo