Responding to my own post: Here is the final batch file with date scripting included. It is probably too basic, but if anyone can use it here it is:
for /F "tokens=1-4 delims=/- " %%A in ('date/T') do wamlog c:\imail\spool\dec%%B%%C.log >> Stats.txt imail1 -s Daily Spam Stats -f Stats.txt -t [EMAIL PROTECTED] -u Spam -h domain.com Jason -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Sent: Monday, April 19, 2004 2:05 AM To: [EMAIL PROTECTED] Subject: [Declude.JunkMail] OT: Scripting batch files Hello everyone. I have created a batch file that runs Bill's log analyzer that was made available last week. What I would like to do is have the DOS batch file e-mail this each night at midnight using the previous days declude log file. I do not know much about date scripting in DOS batch files so any help would be appreciated. Here is the batch I have (very basic): wamlog c:\imail\spool\dec0418.log > Stats.txt imail1 -s Daily Spam Stats -t [EMAIL PROTECTED] -u Spam -h domain.com -f Stats.txt Thanks, Jason --- [This E-mail was scanned for viruses by Declude Virus (http://www.declude.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 was scanned for viruses by Declude Virus (http://www.declude.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.