5

If I save a notepad as .LOG, it acts as a log file.

My question is when I change an entry in the middle of an existing file - it does not append today's date to that.

Is there any way to get that working ?

2
  • 2
    It's not automatic, but you can press F5 to manually insert the current time and date.
    – Bavi_H
    Nov 30, 2010 at 2:59
  • love the username! :-)
    – studiohack
    Dec 1, 2010 at 5:58

3 Answers 3

5

As you already know, when you open a text file that begins with .LOG, Notepad will scroll to the bottom of the file and insert the time and date.

To manually insert the time and date somewhere else, you can use EditTime/Date or press F5.

9

Try this:

Open Notepad and in a new file type .LOG on the first line.

Save it as a .TXT file or .LOG file or whatever filename you want. The next time you open the file with Notepad, the current date and time will auto-magically be appended to the file.

3
  • 3
    +1 for teaching me a new trick with Notepad (who would have thought) Nov 30, 2010 at 18:59
  • SUPER TRICK!!!!!!!! +1
    – kokbira
    Nov 30, 2010 at 20:45
  • 1
    My question already covers this. I wanted to know how to add date-time at any location in the file, and not only at the end Dec 1, 2010 at 5:55
2

I don't think so. Notepad only adds current date & time at the end of the file, not anywhere else.

If you're looking for an alternative, use a tool like PhraseExpress which substitutes #date with current date and #now with current time

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .