User Tip #41: Configure Notepad to automatically insert the date / time.

Hits: Failed to execute CGI : Win32 Error Code = 3


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:

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.

Related tips: