LOGTIME.exe – Windows CMD Command

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 may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *