The lines with INPUTPATH and OUTPUTPATH will cause this error.

you have:
> CAnalyze.exe R1 R15 R21 fINPUTPATH\%llog%
> OOUTPUTPATH\imail\spool\%mmonth%%dday%.html H
> CAnalyze.exe R1 R15 R21 fd:\imail\spool\%llog%
> Od:\imail\spool\%mmonth%%dday%.txt
> e:\imail\imail1 -u [EMAIL PROTECTED] -t [EMAIL PROTECTED] -s "Log
> Analysis for %mmonth%%dday%" -f
> OUTPUTPATH/imail\spool\%mmonth%%dday%.txt

try it this way:
CAnalyze.exe R1 R15 R21 fe:\imail\spool\%llog%
Oe:\imail\spool\%mmonth%%dday%.html H
CAnalyze.exe R1 R15 R21 fe:\imail\spool\%llog%
Oe:\imail\spool\%mmonth%%dday%.txt
e:\imail\imail1 -u [EMAIL PROTECTED] -t [EMAIL PROTECTED] -s "Log Analysis
for %mmonth%%dday%" -f e:\imail\spool\%mmonth%%dday%.txt

If that works, then add R1 R2 R3 ... R26 for each of the reports you want.

Tripp

----- Original Message -----
From: "Don Schreiner" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 24, 2002 4:19 AM
Subject: RE: Wish List [IMail Forum] IMail Log Analyzer Beta


> Help! I am getting filename incorrect error after reading the log file.
> Anyone see where I am going wrong with my .bat file below? Thanks.
>
> -Don S.
>
> @ECHO off
> FOR /F "TOKENS=1* DELIMS= " %%A IN ('DATE/T') DO SET mmonth=%%B
> set mmonth=%mmonth:~0,2%
> FOR /F "TOKENS=1* DELIMS= " %%A IN ('DATE/T') DO SET dday=%%B
> set dday=%dday:~3,2%
> set llog=\imail\spool\%mmonth%%dday%.txt
> echo %llog%
> CAnalyze.exe R1 R15 R21 fINPUTPATH\%llog%
> OOUTPUTPATH\imail\spool\%mmonth%%dday%.html H
> CAnalyze.exe R1 R15 R21 fd:\imail\spool\%llog%
> Od:\imail\spool\%mmonth%%dday%.txt
> e:\imail\imail1 -u [EMAIL PROTECTED] -t [EMAIL PROTECTED] -s "Log
> Analysis for %mmonth%%dday%" -f
> OUTPUTPATH/imail\spool\%mmonth%%dday%.txt
>
> > -----Original Message-----
> > From: [EMAIL PROTECTED] [mailto:IMail_Forum-
> > [EMAIL PROTECTED]] On Behalf Of John Korsak
> > Sent: Thursday, May 23, 2002 1:00 PM
> > To: [EMAIL PROTECTED]
> > Subject: Re: Wish List [IMail Forum] IMail Log Analyzer Beta
> >
> > Don,
> >
> > Someone here saw this request and sat down and wrote a script that
> would
> > do
> > just this that I have included below.  Their recommendation is to
> schedule
> > this using AT (if you don't know what it is, go out to command prompt
> and
> > type AT /?) at 23:59 because the batch file below uses the current
> date.
> >
> > John Korsak
> > Product Marketing Manager, IMail Server
> >
> > ===============================
> >
> > @ECHO off
> > rem This batch will run the command line log analyzer on today's log
> file
> > rem It parses the month and day from the value returned from Date /T
> > rem you can then email the results or copy them to your web server
> > rem this example only creates three reports.  See canalyze.txt
> > rem for a complete list of the report types
> > rem
> > rem Since this batch uses today's date, it is best to schedule this
> > rem to run at 23:59 so you get the contents of today's logs
> > rem An example command line to schedule this is:
> > rem AT 23:59 d:\analyze\runlogs.bat
> > rem
> > rem
> > rem Build the month and day
> > rem
> > FOR /F "TOKENS=1* DELIMS= " %%A IN ('DATE/T') DO SET mmonth=%%B
> > set mmonth=%mmonth:~0,2%
> > FOR /F "TOKENS=1* DELIMS= " %%A IN ('DATE/T') DO SET dday=%%B
> > set dday=%dday:~3,2%
> > rem
> > rem build the log name
> > rem
> > rem you may need to substitute for the name of the file
> > set llog=sys%mmonth%%dday%.txt
> > echo %llog%
> > rem
> > rem  HTML OUTPUT
> > rem
> > rem Run the command line analyzer with HTML output
> > rem substitute in your paths for input and output web directory
> > CAnalyze.exe R1 R15 R21 fINPUTPATH\%llog%
> OOUTPUTPATH\%mmonth%%dday%.html
> > H
> > rem
> > rem TEXT OUTPUT
> > rem
> > rem Run the command line analyzer with text output and optionally mail
> to
> > to
> > someone
> > rem substitute in an address and the input / out paths
> > CAnalyze.exe R1 R15 R21 fd:\imail\spool\%llog%
> > Od:\imail\spool\%mmonth%%dday%.txt
> > rem
> > rem Email the text output
> > rem
> > rem add path imail1, user to send to, file / path for analyzer output
> > rem
> > imail1 -u postmaster -t USER -s "Log Analysis for %mmonth%%dday%" -f
> > OUTPUTPATH/filename
> >
> > ----- Original Message -----
> > From: "Don Schreiner" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Wednesday, May 22, 2002 5:47 PM
> > Subject: RE: Wish List [IMail Forum] IMail Log Analyzer Beta
> >
> >
> > > A scheduler would be nice to set days and times to run your reports
> and
> > > then automatically attach via e-mail either html or txt to yourself.
> > >
> > > -Don S.
> >
> >
> > Please visit http://www.ipswitch.com/support/mailing-lists.html
> > to be removed from this list.
> >
> > An Archive of this list is available at:
> > http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
> >
> > Please visit the Knowledge Base for answers to frequently asked
> > questions:  http://www.ipswitch.com/support/IMail/
> > ----------
> > [This e-mail scanned by CompBiz for Viruses. http://www.CompBiz.Net]
>
>
>
> Please visit http://www.ipswitch.com/support/mailing-lists.html
> to be removed from this list.
>
> An Archive of this list is available at:
> http://www.mail-archive.com/imail_forum%40list.ipswitch.com/
>
> Please visit the Knowledge Base for answers to frequently asked
> questions:  http://www.ipswitch.com/support/IMail/
>


Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/

Please visit the Knowledge Base for answers to frequently asked
questions:  http://www.ipswitch.com/support/IMail/

Reply via email to