Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Could you let me know why below the dos command appear incorrect result on winNT 4.0 server?
Please advise. Thanks.C:> echo %date%
%date%C:> echo %time%
%time%On winXP is normal.
C:\>echo %date%
17/04/2008 ThuC:\>echo %time%
10:06:36.37

The %DATE% and %TIME% automatic variables were not implemented until Windows 2000. Since %DATE% and %TIME% were never SET, it just prints out %DATE% and %TIME%, just as it would have if you typed ECHO %abc%

How to retrieve the day value on winNT server?
I want to get the day to perform dos script.
Please advise. Thanks.

![]() |
![]() |
![]() |
| Login or Register to Reply | |
| Login | Register |
| Ads by Google |