On Monday, April 24, 2006 9:31 AM [EDT],
Mark Edward <[EMAIL PROTECTED]> wrote:

> Hi all,
>
> I'm using a single config file with Analog, for multiple reports, and
> passing in different command line options to produce the reports
> required.
>
> This is working fine apart from when I use Date Codes (e.g. %Y, %M for
> Year and Month) in the Outfile option. Instead of replacing the code
> with the required Year and Month value, the literal string 'M' is
> used.
>
> E.g. the following command in my batch file
>
> call analog.exe +g"siteConfig.cfg" -G +F-00-0001 +T-00-0000
> +O"C:\Inetpub\wwwroot\Site Stats\monthly-%Y-%M.html" -f -r
>
> Produces the report filename "monthly-M.html" instead of
> "monthly-2006-04.html"
>
> I've tested this Outfile option in the actual config file, and it
> worked fine, just not when passed in through the command line.
>
> Could it be a Windows reserved character issue? I've tried replacing
> the % with %% to no avail.

It looks like a problem  with "CALL", not with Analog. I can only reproduce
your problem when I put a line like yours in a batch file (with %% rather
than %, of course). If I call a batchfile instead of analog.exe, and have
the batchfile echo the parameters passed, I see the bare "M"

test.bat:
call analog.bat test.log +O"%%Y%%M.html"

analog.bt:
echo %*

this is the output:
C:\Analog>test

C:\Analog>call analog.bat test.log +O"%Y%M.html"

C:\Analog>echo test.log +O"M.html"
test.log +O"M.html"

It looks like CALL is converting %Y%M to M.

But I'm not sure why you're using CALL - it's for calling batchfiles, and
shouldn't be needed for an executable.

Aengus

+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.meer.net/mailman/listinfo/analog-help
|
|  Analog Documentation: http://analog.cx/docs/Readme.html
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
+------------------------------------------------------------------------

Reply via email to