Andy,

Quoted and unquoted %1 both work on my windows systems (win nt and win 2000)
just try a simple batch:

echo %1
echo "%1"
echo "\%1"
echo "\%1someothertext"

and you can test it. (all the above work as expected on my system) Of course
you could put "echo" in front of your command line to see what is being
executed.  You aren't running up against 255 char max command line are you?
(I can't count that far) so test it and then look at running analog with
settings on and errors to a file etc.

Just thought of an alternative! You could build up a stub config file with
just these variable bits in, using separate echo statements for each line...

echo CHARTDIR %1filtwt > temp.cfg
echo LOCALCHARTDIR \pub\webstats\analog5\%1filtwt >> temp.cfg
.
. etc
.
analog +gtemp.cfg

I use stub files all the time - just the variable stuff goes in them while
the main config is in analog.cfg (which can also be changed by batch file if
you want to make your life REALLY complicated)!

Hope this helps.

Regards

Simon West
Webmaster
Somerset County Council
County Hall Taunton
Somerset TA1 4DY
E-Mail:         mailto:[EMAIL PROTECTED]
Web:            http://www.somerset.gov.uk 
Voice:          +44 (01823) 355905
Fax:            +44 (01823) 355554

 -----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: 16 March 2001 00:16
To: [EMAIL PROTECTED]
Subject: [analog-help] Running 490b3 from a batch file -PNG overwrite
problem



I wish to create about 6 different reports from the same logfile using a
batch file by just passing the month number (YYMM)

e.g. processlogs.bat 0103

Here are two such line to create reports from the bat file using %1 for the
passed parameter.

analog \sainnerlogs\20%1\%1.out +gmonthlywebteam.cfg +Os:
\pub\webstats\analog5\%1filtwt.html +C"CHARTDIR %1filtwt" +C"LOCALCHARTDIR
\pub\webstats\analog5\%1filtwt"
analog \sainnerlogs\20%1\%1.out +gmonthlypdfwebteam.cfg +Os:
\pub\webstats\analog5\%1filtpdfwt.html +C"CHARTDIR %1filtpdfwt"
+C"LOCALCHARTDIR \pub\webstats\analog5\%1filtpdfwt"


I cannot get CHARTDIR or LOCALCHARTDIR to add the prefix ... and i really
do not want to create a seperate directory for each report to prevent the
PNG files from overwriting each other.  Do I have the problem because I
have to quote the CHARDIR command due to its embedded spaces and the %1
does not expand if quoted? or something like that?

Is there a better way round this?

If not, can you perhaps re-program Analog to derive the PNG prefix from the
output file name so the overwriting is prevented more easily (and
transparently)?

regards
Andy Gillanders

------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------
------------------------------------------------------------------------
This is the analog-help mailing list. To unsubscribe from this
mailing list, send mail to [EMAIL PROTECTED]
with "unsubscribe" in the main BODY OF THE MESSAGE.
List archived at http://www.mail-archive.com/[email protected]/
------------------------------------------------------------------------

Reply via email to