Home > Commands A-M > Commands L

LOGTIME


Description | Syntax | Parameters | Switches | Related | Notes | Examples | Errorlevels | Availability

Create logtime.txt and adds the date, time and a message.


Syntax

LOGTIME "Text"


Parameters
"Text" (NT4)
Text message you want logged.

Switches

none.


Related

ECHO - Display message on screen.
DATE /T - Display or set the date.
TOUCH - Change file timestamps.
Equivalent Linux BASH commands:
echo - Display message on screen.
select - Accept keyboard input.


Notes

The date is stored in the US mm/dd/yy format.


Examples
    LOGTIME "begin import program"
    import.exe
    LOGTIME "end import program"

An alternative command is:

    ECHO. | DATE | FIND /I "current">>C:\Install_log.txt

Errorlevels

none.


Availability
External Resource Kit
DOS
none
Windows
none
Windows NT
NT4