Portable version|Green version of NotePad++ Add right-click associated graphic tutorials

1. Written in front:

Notepad++ officially provides a portable version, but anyone who has used the installed version knows that the installed version has a very useful function, that is, right-click on the file, there is a convenient item "Open with Notepad++", and the portable version wants to If you use it, you have to add it yourself.


Figure 1 File - Right Click - Example
2. 自动Add through the registry
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\NotePad打开]
"Icon"="C:\\Program Green\\NotepadPortable.7.8x64\\notepad++.exe"

[HKEY_CLASSES_ROOT\*\shell\NotePad打开\command]
@="\"C:\\Program Green\\NotepadPortable.7.8x64\\notepad++.exe\" \"%1\""

Copy the above code, modify your notepad++ software path, save it as a *.reg file, and double-click to run it.

3. 手动Add through the registry
1. Open the registry

There are many methods, for example, Winkey + Rkey, press regeditEnter after input;

2. Add item value
  1. Navigate to HKEY_CLASSES_ROOT\*\shell\, shellright-click-new-item, enter the name (take "NotePad Open" as an example below), this name is the text displayed when right-clicking (see the red box in Figure 1);

Figure 2 shell-right click-new-item
  1. Right-click on NotePad打开the item-New-String Value, the name is Icon(the first letter is capitalized i), then double-click the value in the right panel (or right-click-modify), and enter your portable version of the notepad++.exe file in the numerical data edit bar path.
    [Note: The use of this string value is the icon when right-clicking (see the red box in Figure 1), you can skip this step if you don’t want it. ]

Figure 3 Right click - New - String value
  1. Right-click on NorePad打开the item-New-Item, name it command, and modify the string data to the path of your portable version of notepad++.exe, such as: "C:\NotepadProtable\notepad++.exe" "%1"(with double quotation marks).

Figure 4 New-Item

Note: If you move the software location, you need to re-register.
Re-registration method:
Method 1. Navigate to the registry to manually modify the path; Method 2. Modify
each of the above codes , save the *.reg file and execute it once to automatically clear the original registration, and then press 3. Add through the registry Just re-register a new one.[HKEY_CLASSES_ROOT\……][-HKEY_CLASSES_ROOT\……]自动

Original article, please correct me if there are any mistakes or omissions;
if you need to read it again, please bookmark it~

Guess you like

Origin blog.csdn.net/qq_27677599/article/details/109124950