Right-click menu with icon for notepad++

Source: Internet
Author: User


Original: Add icon to the notepad++ right-click menu


Downloaded from the Internet notepad++ http://download.tuxfamily.org/notepadplus/6.3.3/npp.6.3.3.bin.zip decompression, can be used directly, but the right-click menu does not have it, very inconvenient , this article uses three kinds of ways to notepad++ registration right-click menu function, they only slightly difference: Way One: set up a reg file as follows, copy the following content and replace the related path, save, double-click Run to join the registry.


 
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\NotePad++]
@="Open with &Notepad++"
"Icon"="C:\\Program Files (x86)\\Notepad++\\Notepad++.exe"

[HKEY_CLASSES_ROOT\*\shell\NotePad++\Command]
@="C:\\Program Files (x86)\\Notepad++\\Notepad++.exe \"%1\""


The uninstall command is also saved as a reg file, copy the following, save, double-click to run join the registration form.


Windows Registry Editor Version 5.00
[-hkey_classes_root\*\shell\notepad++]





Way two:



In another system that normally installs notepad++, you see that it uses the "notepad++" edit configuration in a different location under Hkey_classes_root\*\shellex\contextmenuhandlers. Still using the registry, the relevant 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}]





Way three:



If your directory contains Nppshell_03.dll or Nppshell_04.dll or Nppshell_05.dll, the file name in the different versions is not the same. You can also download a DLL file on the Internet, if there is such a file, save the following code with Notepad as "notepad++ right-click menu Add or Uninstall tool. Bat", put it under notepad++ 's installation directory or nppshell_04. DLLs are executed under the same directory. The code is as follows:


 
@Echo Off
Title Notepad++ right-click menu add or uninstall tool

SetLocal EnableDelayedExpansion
Echo 1. Add Notepad++ right-click menu
Echo ------------------------
Echo 2. Uninstall Notepad++ right-click menu
Echo ------------------------

Set /p u=Please enter a number and press Enter to confirm:

If "%u%"=="1" Goto regnp++
If "%u%"=="2" Goto unregnp++

:regnp++
Regsvr32 NppShell_04.dll
Exit

:unregnp++
Regsvr32 /u NppShell_04.dll
Exit





The difference between the above three ways:



The use of the way a relatively concise,



Resources:



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



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



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



Right-click menu with icon for notepad++


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.