Symptoms:
1-Double click txt open result automatically print with Notepad
2-Select TXT file in Windows Explorer, 2 print buttons appear on the Vista Ribbon toolbar, one of the print buttons is Notepad
Workaround: Enter the registry and find that the hkey_classes_root\txtfile\shell\ has only print and printto two keys and the open key is missing, so add the Open\command key and change the (default) key value to%systemroot %\system32\notepad. EXE%1
Note: If you create a new Open\command key directly under the shell, the type of the (default) key value is REG_SZ, and the type you need here is REG_EXPAND_SZ, you cannot directly modify (default) a key value type, and you cannot create a new Reg_expand_ The SZ type key is then renamed (default), and you can change the key name to @ when you export the registry. As follows:
[HKEY_CLASSES_ROOT\txtfile\shell]
[HKEY_CLASSES_ROOT\txtfile\shell\open]
[HKEY_CLASSES_ROOT\txtfile\shell\open\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,\
00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,\
4f,00,54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,\
00,00,00