LOGTIME.exe (2003 Resource kit)

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.

Examples

Sample batch file:

LOGTIME "begin import program"
import.exe
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

Related commands

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


 
Copyright © 1999-2024 SS64.com
Some rights reserved