Yes... here is a piece of code for Windows I found and use to get todays
date in output filename :

# To set the date variable in this format : 2003-03
for /F "tokens=1,2" %%d in ('date /T') do set day=%%d & set date=%%e
set yyyy=%DATE:~6,4%
set mm=%DATE:~3,2%
set dd=%DATE:~0,2%
set DATE=%yyyy%-%mm%

# To start Analog using a custom cfg and create an output file containing
todays year and month like so : report_2003-03.dat
call "C:\Program Files\Analog 5.31\analog.exe"
+g"my_analog.cfg" -O"report_%DATE%.dat" -G

JP


----- Original Message -----
From: "Aengus" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, March 13, 2003 6:50 AM
Subject: Re: [analog-help] Issue with dates in output, need advice


> Jeremy Wadsack <[EMAIL PROTECTED]> wrote:
>
> > However, in both places, if you are on a unix system, you can use the
> > 'date' command to insert the value you want to use. e.g.
> >
> >        analog -Oreport_`date +%Y-%m`.dat
> >
> >        rmagic.pl --statitics_File_In=report`date +%Y-m`.dat
> >
> > On windows you can do this too with for and set or something. Check in
> > the list archives for this. I never remember how to do it.
>
> These messages outline how to calculate date strings in NT and Win2K
> (and XP, I think).
>
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg06596.html
> http://www.mail-archive.com/[EMAIL PROTECTED]/msg11943.html
>
> Aengus
>
> +------------------------------------------------------------------------
> |  TO UNSUBSCRIBE from this list:
> |    http://lists.isite.net/listgate/analog-help/unsubscribe.html
> |
> |  Digest version: http://lists.isite.net/listgate/analog-help-digest/
> |  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
> |  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
> +------------------------------------------------------------------------

+------------------------------------------------------------------------
|  TO UNSUBSCRIBE from this list:
|    http://lists.isite.net/listgate/analog-help/unsubscribe.html
|
|  Digest version: http://lists.isite.net/listgate/analog-help-digest/
|  Usenet version: news://news.gmane.org/gmane.comp.web.analog.general
|  List archives:  http://www.analog.cx/docs/mailing.html#listarchives
+------------------------------------------------------------------------

Reply via email to