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"
import.exe
LOGTIME "end import program"
An alternative command is
ECHO: | DATE | FIND /i "curre">>C:\Install_log.txt
“You can always tell that an organisation is on the skids when it changes it's name, and pays a lot of money for consultants to invent some ghastly new corporate identity” ~ Baroness Helena Kennedy
Related:
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