Symptom: 1-double-click TXT and use NotePad to open the result and print it automatically.
2-click the TXT file in Windows Explorer, and two print buttons appear on the Vista ribbon toolbar. The icon of one print button is notepad.
Solution: Go to the Registry and find that hkey_classes_root \ txtfile \ shell \ only has two keys: Print and printto, but the open key is missing. Therefore, add the open \ command key and set (default) the key value is changed to % SystemRoot % \ system32 \ notepad. EXE % 1
Note: If you directly create an open \ command key under shell, the (default) Type of the key value is REG_SZ, And the type required here is reg_expand_sz, which cannot be directly modified (default) you cannot create a reg_expand_sz key or change the key name to @ by exporting 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, 00, 6d, 00, 6f, 00, 6f ,\
, 25, 00, 5C, 79, 00, 00, 6d, 00, 00, 5C, 00, 4E, 00 ,\
4f, 31 ,\
00, 00