John, I have attached the most recent version which is formatted a little differently with more error checking and feedback included. This file might work better for you.
Either replace the date formatting section with the code below... ::Creates date variables 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) ::Skip report if day is 1st for now... IF %dd% EQU 1 goto end IF %pd% LEQ 9 (set yd=0%pd%) else (set yd=%pd%) ...or just replace the old USAGE.CMD with the new one in the attached zip file and modify it. It's easier to get configured as you just run it and it tells you what's missing. Once the script can find everything it needs it starts working. Best regards, Jeff Pitoniak PCE Systems, Inc. -----Original Message----- From: John Shacklett [mailto:[EMAIL PROTECTED]] Sent: Tuesday, January 08, 2002 12:53 PM To: [EMAIL PROTECTED] Subject: RE: MISSING_REVERSE_DNS:RE: [Declude.Virus] Imail/declude log parser... Jeff, I just had this same error pop up after weeks of using your usage tool without incident. I attached a file with the cmd output. Just FYI. C:\>SETLOCAL C:\>SET sys=c:\winnt\system32\ C:\>SET spl=c:\imail\spool\ C:\>SET log=D:\Logs\ C:\>SET send=c:\imail\imail1.exe C:\>SET [EMAIL PROTECTED] C:\>FOR /F %z IN ('TIME/T') DO set time=%z C:\>set time=12:43p C:\>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 ) C:\>(SET day=Tue & SET mm=01 & SET dd=08 & SET year=2002 & SET /A pd=08-1 ) Invalid number. Numeric constants are either decimal (17), hexidecimal (0x11), binary (0b10001) or octal (021). C:\>IF EQU 0 GOTO END 0 was unexpected at this time. C:\>
Usage1-2.zip
Description: Zip compressed data