As an example, you have files with a .bak extension that you'd like to print by right-clicking on the file name in Explorer.
in Explorer choose View, Options.
click the File Types tab.
click New Type and under Description Of Type enter ASCII File
press Tab to move to Associated Extension and type in BAK
click OK to continue.
back in Options, click Edit.
in the Edit File Type dialog box, click New.
click the Action entry box and enter Print
press Tab to move to Application Used To Perform Action and enter
C:\WINNT\system32\NOTEPAD.EXE /p
click OK.
in the Edit File Types dialog box, click Close.
In Options, click Close.
Your .bak file retains the original default icon and will not open in Notepad if you double-click it. You must right-click the file and choose Print from the menu.