Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 ?

share|improve this question
2  
It's not automatic, but you can press F5 to manually insert the current time and date. –  Bavi_H Nov 30 '10 at 2:59
    
@Bavi_H: that's good for me. if you make this an answer, I'll accept it. –  shinynewbike Nov 30 '10 at 5:20
    
love the username! :-) –  studiohack Dec 1 '10 at 5:58
    
@studiohack: thanks :) –  shinynewbike Dec 1 '10 at 6:03

3 Answers 3

up vote 4 down vote accepted

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.

share|improve this answer

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.

share|improve this answer
3  
+1 for teaching me a new trick with Notepad (who would have thought) –  Stephen Jennings Nov 30 '10 at 18:59
    
SUPER TRICK!!!!!!!! +1 –  kokbira Nov 30 '10 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 –  shinynewbike Dec 1 '10 at 5:55

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.