Aleksandar's computer workshop

Let's see what Aleksandar was fixing today.
My findings, tips & tricks related to computers, internet, programming and other stuff I was working with.

Few Notepad trick and tips

How to Use Notepad to Create a Log File

Microsoft Notepad is a word processing tool included with Windows and is installed by default under the Accessories program group. You can use it to create a log-type file that adds the current date and time each time the Notepad file is opened.

To create a log file in Notepad:

  • Click Start, point to Programs, point to Accessories, and then click Notepad.
  • Type .LOG on the first line (case sensitive), and then press ENTER to move to the next line.
  • On the File menu, click Save As, type a descriptive name for your file in the File name box, and then click OK.
  • When you next open the file, note that the date and time have been appended to the end of the log, immediately preceding the place where new text can be added. You can use this functionality to automatically add the current date and time to each log entry.

This cool notepad trick can be used to make daily notes or can be used as a diary also.
You can even press F5 to get the current date and time anywhere between the text.

Change header and footer

Want to get rid of default page header oand footer in notepad?
To do this click on file -> page setup, remove the characters in the header and footer textboxes and write whatever you want.

Also, you can print other information at the top of each printed page in the file.
To have Notepad print information in the header, use the letter and character combinations in the following table.

To Type
Insert the open file's name or "(untitled)" if the file has no name &f
Insert the date. &d
Insert the time specified by your computer's clock. &t
Insert page numbers. &p
Insert an ampersand (&). &&
Align the header to the left, center, or right. &l, &c, or &r