Cool Notepad Trick

This neat trick came across on an internal alias.  I hadn't seen this before, but I'm guessing it isn't new. Pretty handy for notetaking (if you're a plain text sort of guy/gal).

  1. Open a blank Notepad file
  2. Write .LOG (in uppercase) in the first line of the file, followed by Enter. Save the file and close it.
  3. 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.
  4. Type your notes and then save and close the file.
  5. 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.

[Update:  Evidentally this is explained in KB260563 which makes it look like this feature has been around since Windows 98.  Still pretty cool in my book.

I was in a presentation today with Jeff Sanquist and as he was scrolling through his blog on screen saw he picked up on this too.]

Comments (19)
  1. Creare un documento notepad vuoto

    Scivere alla prima riga .LOG (tutto maiuscolo) seguito da un invio…

  2. tobint says:

    I sort of prefer just to use F5 when I want insert a date, but this is something I hadn’t seen before.

  3. ddysart says:

    Didn’t know about the F5 trick either, thanks!

  4. Lifehacker says:

    Blogger and Microsoft employee Derek Dysart has posted a great tip for automatically dating every new entry in a text file edited with Notepad. Open a blank Notepad file Write .LOG (in uppercase) in the first line of the…

  5. itsmeagain says:

    pretty neat but f5 works just as good

  6. Just Coding says:

    Another great trick of our old friend notepad.exe Link to Hirlpoo West : Cool Notepad Trick

  7. Ian says:

    This was way back in Windows 3 IIRC

Comments are closed.

Skip to main content