not really typing into notepad, it's actualy making a batch file.
try this as test.
open notepad, type "ping www.google.com" (without quotes)
now save as and in the dialog box, give it the name test.bat (yes put the .bat),now where it says "save as type" click "all files".
this will make a .txt file into a batch file