Re: Server 2003 DOS prompt time problem

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Hmm - go to System Properties/Advanced tab - Environmental Variables. Maybe
'time' is defined with a value of 15:18?

Doug Sherman
MCSE, MCSA, MCP+I, MVP

<javzxp@xxxxxxxxxxx> wrote in message
news:1158597475.651567.45840@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi

I have a strange problem when using the TIME function in the DOS prompt
of server 2003.

If I type 'time', I get the correct time:

The current time is: 17:33:05.25

But if I type 'echo %time%', I get completely the wrong time (15:18),
which incidentally does not change at all (it always gives 15:18).

Does anyone know what the issue is here? I'm trying to adapt an old
DOS script to dynamically assign filenames based on date and time.

Thanks very much for any help.

Adrian



.



Relevant Pages

  • Re: Date Format
    ... if at the Dos prompt I issue the command date /t I get the ... I have checked the environmental variables but can find no reason ... generates a date/time output in a fixed format, ...
    (microsoft.public.windowsxp.general)
  • Re: How to get "My Documents" location in Tcl
    ... You can also try the environmental variables. ... Typing "set" in a dos prompt will show all of them. ...
    (comp.lang.tcl)
  • Re: OT: pc oddness
    ... Gingerpose wrote: ... Environmental Variables (Right click on My Computer then click ... Or just type "set" at a dos prompt. ... However something happened when you upgraded to SP3. ...
    (uk.rec.motorcycles)