Bob,
As you can see from the following this does nothing on my machine.
C:\WINDOWS\TEMP>set yyy=%DATE%
C:\WINDOWS\TEMP>set
TMP=C:\WINDOWS\TEMP
TEMP=C:\WINDOWS\TEMP
PROMPT=$p$g
winbootdir=C:\WINDOWS
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND
COMSPEC=C:\WINDOWS\COMMAND.COM
windir=C:\WINDOWS
C:\WINDOWS\TEMP>set yyy=%DATE:~4,2%
C:\WINDOWS\TEMP>set
TMP=C:\WINDOWS\TEMP
TEMP=C:\WINDOWS\TEMP
PROMPT=$p$g
winbootdir=C:\WINDOWS
PATH=C:\WINDOWS;C:\WINDOWS\COMMAND
COMSPEC=C:\WINDOWS\COMMAND.COM
windir=C:\WINDOWS
C:\WINDOWS\TEMP>
regards,
Robert W.Mills
Systems Development Manager
Windsong Services
-----Original Message-----
From: Bob McGregor [mailto:[log in to unmask]]
Sent: 21 May 2002 15:19
To: [log in to unmask]
Subject: Re: OT: M$-Dos Question
set yyy=%DATE%
or to get the month value only
set yyy=%DATE:~4,2%
On Tuesday, May 21, 2002 4:22 AM, Robert Mills
<[log in to unmask]> wrote:
>Greetings,
>
>OK, I know that this is a forum for the HPe3000 BUT I have made the posting
>Off Topic.
>
>Does anybody remember how to load the current date into a dos environment
>variable?
>
>regards,
>
>----------------------------------------
>Robert W.Mills, Systems Development Manager, Windsong Services
>Electron House, Cray Avenue, St. Mary Cray, Kent BR5 3PN, ENGLAND
>Tel: +44 (0)1689.870622 x 3005 Fax: +44 (0)1689 899026
>[log in to unmask]
>----------------------------------------
>The thoughts, comments, and opinions expressed herein are mine.
>They do not reflect those of my employer, nor anyone else.
>----------------------------------------
>***Confidentiality Notice: This e-mail message, including any attachments,
>is for the sole use of the intended recipients and may contain confidential
>and privileged information. Any unauthorized review, use, disclosure or
>distribution is prohibited. If you are not the intended recipient, please
>contact the sender by reply e-mail and destroy all copies of the original
>message.
>
>* To join/leave the list, search archives, change list settings, *
>* etc., please visit
>http://raven.utc.edu/archives/hp3000-l.html *
>
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|