Simon West wrote:

> I know you have had a lot of answers on this one, but you CAN do it with
> batch files...
>
> @echo off
> 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 dateserial=%yyyy%%mm%%dd%
>
> will create the dateserial environment variable as 20010109 today. It is a
> fairly simple matter to adjust this to most formats, but I think that is
> what you wanted, without resorting to Perl.

Thanks Simon. I've never been fully aware of the complete for syntax, so I
missed this possibility. However, I think this only works on NT (and 2000?),
right?


Jeremy Wadsack
Wadsack-Allen Digital Group


------------------------------------------------------------------------
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