That was the ticket!
Thanks Bill!!
At 11:20 AM 9/19/01 -0700, you wrote:
>for /F "tokens=1-4 delims=/ " %%i in ('date /t') do (
> set DayOfWeek=%%i
> set Month=%%j
> set DayNum=%%k
> set Year=%%l
> set Date=%%i %%j/%%k/%%l
>)
>
>for /F "tokens=1-4 delims=: " %%i in ('time /t') do (
> set time=%%i%%j
>)
>
>-----Original Message-----
>From: Philip Brothwell [mailto:[EMAIL PROTECTED]]
>Sent: Tuesday, September 18, 2001 22:31
>To: NT System Admin Issues
>Subject: Batch File help needed
>
>
>Greetings,
>
>I am trying to write a batch file that captures the output of the DOS "time
>/t" command into an environmental variable. Or if it can not be done
>directly then by importing the contents of a file into an environmental
>variable. (time /t>time.txt puts the the current time into a file)
>
>It has been too long since I played with this sort of thing and I can't for
>the life of me remember how to do it! Any ideas?
>
>Oh, and if it matters this is to be run on NT4.0 SP6A Workstation
>
>Thanks!
>
>
>Philip Brothwell
>[EMAIL PROTECTED]
>
>VOICE (603) 529-2385
>FAX (603) 529-2384
>
>
>http://www.sunbelt-software.com/ntsysadmin_list_charter.htm
>
>http://www.sunbelt-software.com/ntsysadmin_list_charter.htm
Philip Brothwell
[EMAIL PROTECTED]
VOICE (603) 529-2385
FAX (603) 529-2384
http://www.sunbelt-software.com/ntsysadmin_list_charter.htm