> 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.

Reply via email to