It’s sometimes useful to use notepad to print basic text, but it also prints a header and footer by default.
It turns out that you can change the formatting, for example to output the current date and time.
&l Left-align the characters that follow
&c Center the characters that follow
&r Right-align the characters that follow
&d Print the current date
&t Print the current time
&f Print the name of the document
&p Print the page number
Often, though, you might want the print format to be disabled by default
Goto the key HKCU\Software\Microsoft\Notepad
Then add string values “szHeader” and “szTrailer” with value “”