In other words, if using the following lines:
for /f "tokens=1-4 delims=/ " %%a IN ('DATE/T') do (
set day=%%a
set mm=%%b
set dd=%%c
set year=%%d
set /A pd=%%c-1)
and running on 04/01/06, is %%c 03/31/06 or 04/00/06 or what?
John T
eServices For You
"Seek, and ye shall 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: [email protected]
> 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 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
>
> OK, can some one please explain the logic of this line. This appears to be
> what I need to do. My understanding is that it is only calling the winzip
> command to a specific file name.
>
> 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.