Every time I open a text (.txt) document on my PC (Windows 7 Ultimate x64), it immediately begins printing on my default printer.
What is happening and how do I turn it off?
Perhaps you have something like a
C:\>assoc .txt .txt=txtfile C:\>ftype txtfile txtfile=%SystemRoot%\system32\NOTEPAD.EXE %1
Of course this depends on exactly how you "open a text (.txt) document", For example, if you mean you run MS Word and use it's
(The key name and type are
There may have been some incorrect values (or missing entries) that cause the described problem.
Delete this key from the registry:
Right click on a .txt file, choose Open With > Notepad. All will be okay.
Go to Control Panel (icon view) Default Programs, then click "associate a file type or protocol with a program"
Scroll down to .txt , it should be associated with Notepad, is it?
If it is not, double click it and select Notepad
I had the same problem on my home PC (what's going on!?) and the FTYPE command that RedGrittyBrick suggested did not work this time. I had to modify the registry manually. I had to modify the type of the registry key using the command line.