Error DataBase-One Place all Solutions Forums Blog Glossary    Contact Us
Search  
   
Browse by Category
Error DataBase-One Place all Solutions .: Operating Systems .: Windows Operating Systems .: MS DOS .: How to Create logtime.txt and adds the date, time and a message using LOGTIME.EXE

How to Create logtime.txt and adds the date, time and a message using LOGTIME.EXE

Create logtime.txt and adds 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 (NT 4.0)

Sample batch file:

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

An alternative command is
ECHO. | DATE | FIND /i "current">>C:\Install_log.txt


How helpful was this article to you?

Related Articles

article How to Configure Time and Date Settings in Windows 2008 Server Core
Windows Server 2008 has an interesting...

(No rating)  3-26-2008    Views: 197   
article How to Display or set the date using DATE command
Display or change the date Syntax to...

(No rating)  3-7-2008    Views: 105   
article How to start the Windows Time service in XP
Clients not synchronized with servers can occur...

(No rating)  3-6-2008    Views: 194   

User Comments

Add Comment
No comments have been posted.