Right-click notepad ++ and add an icon to the menu

Source: Internet
Author: User
The notepad ++ notebook downloaded from the Internet, but it is not convenient to use it in the right-click menu. This article uses three methods to register the right-click menu function for notepad ++. They only have a slight difference: Method 1:Create a reg file as follows, copy the following content and replace the relevant path, save it, and double-click it to add it to the Registry.
Windows Registry Editor Version 5.00 [hkey_classes_root \ * \ shell \ notepad ++]
@ = "Open" "icon" = "C: \ Program Files (x86) with & notepad ++) \ notepad ++ \ notepad1_cmd.exe "[hkey_classes_root \ * \ shell \ notepad ++ \ command] @ =" C: \ Program Files (x86) \ notepad ++ \ notepad).exe \ "% 1 \""

The uninstall command is also saved as the reg file, copy the following content, save it, and double-click it to add it to the Registry.

Windows Registry Editor Version 5.00
[-HKEY_CLASSES_ROOT\*\shell\NotePad++]

 

Method 2:

In another system with notepad ++ installed normally, you can see that the location for editing the configuration using "Notepad ++" is different in hkey_classes_root \ * \ shellex \ contextmenuhandlers. The Registry is still used. The related registry information is as follows:

Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\Notepad++]@="{00F3C2EC-A6EE-11DE-A03A-EF8F55D89593}"[HKEY_CLASSES_ROOT\CLSID\{00F3C2EC-A6EE-11DE-A03A-EF8F55D89593}]@="Notepad++"[HKEY_CLASSES_ROOT\CLSID\{00F3C2EC-A6EE-11DE-A03A-EF8F55D89593}\InprocServer32]@="D:\\Program Files\\Notepad++\\notepad++.exe""ThreadingModel"="Apartment"[HKEY_CLASSES_ROOT\CLSID\{00F3C2EC-A6EE-11DE-A03A-EF8F55D89593}\Settings]"Title"="Edit with &Notepad++""Path"="D:\\Program Files\\Notepad++\\notepad++.exe""Custom"="""ShowIcon"=dword:00000001"Dynamic"=dword:00000001"Maxtext"=dword:00000019

The uninstall command is as follows:

Windows Registry Editor Version 5.00[-HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\Notepad++][-HKEY_CLASSES_ROOT\CLSID\{00F3C2EC-A6EE-11DE-A03A-EF8F55D89593}]

 

Method 3:

If your directory contains nppshell_03.dll, nppshell_04.dll, or nppshell_05.dll, the file names in different versions are different. You can also download such a DLL file from the Internet. If there is such a file, save the following code in Notepad as "Notepad ++ right-click the menu to add or uninstall the tool. bat ", put it in the notepad ++ installation directory or nppshell_04.dll in the same directory. The Code is as follows:

@ Echo offtitle notepad ++ right-click the menu to add or uninstall the tool setlocal enabledelayedexpansionecho 1. add notepad ++ right-click the menu echo ---------------------- Echo 2. unmount notepad ++ right-click the menu echo ---------------------- set/p u = enter a number and press enter to confirm: if "% u %" = "1" Goto regnp ++ if "% u %" = "2" Goto unregnp ++: regnp ++ regsvr32 nppshell_04.dllexit: unregnp ++ regsvr32/u nppshell_04.dllexit

 

Differences between the above three methods:

Method 1 is simple,

References:

Http://09105106.blog.163.com/blog/static/248357820135642611105/

Http://ljhzzyx.blog.163.com/blog/static/383803122010102333251780/

Http://www.ok12.net /? Post = 31

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.