Configure Notepad to automatically insert the date / time

Written by on Thursday, January 3, 2008 4:34 - 0 Comments

Notepad’s major advantage as an editor is its default presense on every windows box, Win9x, Windows NT, ME, Windows XP. Its universal windows presence is analogous to VI for unix. Like vi, a common use for Notepad is creating log files or journal files. You can easily insert the current time and date into Notepad manually. Just open Notepad and press F5 or use the menu: select Edit | Time/Date. This is a manual process. There is an automatic option that inserts the time and date automatically when you open the file:

Create a blank text file with .LOG as the first line of the file, followed by a carriage return.
Double-click the file to open it and notice that Notepad appends the current date and time to the end of the file and places the cursor on the line after.
Type your notes and then save and close the file.

Each time you open the file, Notepad repeats the process, appending the time and date to the end of the file and placing the cursor below it.

The long and short of it is that any file that notepad opens which has .log on the first line followed by a carriage return will open the file, put date/time on the last line and place the cursor on the last line. ')}

Article written by

Comments are closed.

Ad Sponsor


2003 server - Sep 30, 2008 22:34 - 0 Comments

instant messaging srv records

More In Computers & PC

Microsoft Outlook - Mar 22, 2009 11:22 - 0 Comments

Outlook: Duplicates in Mailbox

More In Computers & PC

Microsoft Desktop, Web browsers and Internet, Windows 2000, Windows 7, Windows 98, Windows Firewall and networking, Windows Vista, Windows XP - Feb 8, 2010 18:09 - 0 Comments

Disable Proxy settings in IE

More In Computers & PC