Create logtime.txt and add the date, time and a message.
Syntax LOGTIME text_string Key text_string : The message to add to the log file.
The date is stored in the US mm/dd/yy format.
Sample batch file:
LOGTIME "begin import program"
LOGTIME "end import program"
An alternative command to log the date and time:
ECHO: | DATE | FIND /i "curre">>C:\Install_log.txt
“You can always tell that an organisation is on the skids when it changes its name, and pays a lot of money for consultants to invent some ghastly new corporate identity” ~ Baroness Helena Kennedy
ECHO - Display message on screen.
DATE /T - Display or set the date.
TOUCH - Change file timestamps.
timer.cmd - Measure the run time of a script.
Equivalent PowerShell cmdlet: Measure-Command