Wednesday, February 27, 2008

Date and Time Environment Variables

You can get the current date and time in a batch file by entering:

echo %date% (this gives the same value as date /t)
or
echo %time% (this gives the same value as time /t)

No comments: