Vista under double-click TXT file with Notepad to open automatic printing problem solving

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.