Computing.Net > Forums > Windows NT > WINNT echo command issue

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

WINNT echo command issue

Reply to Message Icon

Name: tyu
Date: April 16, 2008 at 19:19:45 Pacific
OS: WINNT4.0.1381
CPU/Ram: Celeron(R) CPU 2.40GHz/25
Product: CTR
Comment:

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 Thu

C:\>echo %time%
10:06:36.37



Sponsored Link
Ads by Google

Response Number 1
Name: Razor2.3
Date: April 16, 2008 at 19:42:03 Pacific
Reply:

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%


0

Response Number 2
Name: tyu
Date: April 16, 2008 at 21:33:18 Pacific
Reply:

How to retrieve the day value on winNT server?

I want to get the day to perform dos script.

Please advise. Thanks.


0

Response Number 3
Name: Glitchman
Date: April 17, 2008 at 07:12:37 Pacific
Reply:

time /t >> file.txt
date /t >> file.txt


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More






Use following form to reply to current message:

Login or Register to Reply
LoginRegister


Sponsored links

Ads by Google


Results for: WINNT echo command issue

Can't install winnt 40 workstation www.computing.net/answers/windows-nt/cant-install-winnt-40-workstation/22840.html

A good Logon Script www.computing.net/answers/windows-nt/a-good-logon-script/17739.html

NET USE command issue www.computing.net/answers/windows-nt/net-use-command-issue/22138.html