Don,

I'm not sure.  There isn't enough information for me to tell where the
problem is.

"09" is not supposed to be 9,dec, hex, or octal.  It is a string
(alhanumeric) because it is referring part of a filename(i.e. log1209.txt).
I have never seen logfiles named "log129.txt", they are always named
"log1209.txt".

Actually getting this script to generate the zero in front of a "less than
10 day of the month" after subtracting 1 from the day was one of the
trickiest parts of this batch script because there isn't a straight forward
way to convert a decimal back into a string that I am aware of.  When you
subtract, the NT command processor converts the string into an integer which
will never retain the zero in front.

Comment out the "@echo off" in the first line usage.cmd by putting two
colons in front of it (::@echo off ), save the command script.  Open a
command prompt, switch to the directory where the usage.cmd is located and
type:

usage 1 > usage.log 2>&1

This will redirect all standard and error output into the usage.log file.
Attach this file to your reply so I can see what's going on and I'll see
what I can do.

Here is a snippet of output in Windows 2000 professional SP2 (the same
command processor as W2K Server) showing all of the date variables generated
by the command script.

C:\>usage
8:59a
Mon, 12-10-2001 (yesterday: 09)

The reason for yesterday is that the script processes the previous day's
logs after the day has ended so they are complete.

Regards,
Jeff

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Don Brown
Sent: Sunday, December 09, 2001 11:56 AM
To: [EMAIL PROTECTED]
Subject: RE: [Declude.Virus] Imail/declude log parser...


At 05:15 PM 12/6/01 -0500, you wrote:

>Put this usage.cmd in c:\tools (or modify paths in the scipt to match where
>you put it)

The batch file is failing here because the day is 09 instead of a decimal
9.  It complains it is not dec, hex or octal.

How do I fix this.

Running Windows 2000 server.

Thanks,


----
Don Brown - Dallas, Texas USA       Internet Concepts, Inc.
[EMAIL PROTECTED]            http://www.inetconcepts.net
PGP Key ID: 04C99A55                  (972) 788-2364  Fax: (972) 788-5049
Providing Internet Solutions Worldwide - An eDataWeb Affiliate
----

---
[This E-mail was scanned for viruses by Declude Virus
(http://www.declude.com)]

This E-mail came from the Declude.Virus mailing list.  To
unsubscribe, just send an E-mail to [EMAIL PROTECTED], and
type "unsubscribe Declude.Virus".  You can E-mail
[EMAIL PROTECTED] for assistance.  You can visit our web
site at http://www.declude.com .
---
[This E-mail was scanned for viruses by Declude Virus
(http://www.declude.com)]


---
[This E-mail was scanned for viruses by Declude Virus (http://www.declude.com)]

This E-mail came from the Declude.Virus mailing list.  To
unsubscribe, just send an E-mail to [EMAIL PROTECTED], and
type "unsubscribe Declude.Virus".  You can E-mail
[EMAIL PROTECTED] for assistance.  You can visit our web
site at http://www.declude.com .

Reply via email to