Article Directory
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.
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, Win
key + R
key, press regedit
Enter after input;
2. Add item value
- Navigate to
HKEY_CLASSES_ROOT\*\shell\
,shell
right-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);
- Right-click on
NotePad打开
the item-New-String Value, the name isIcon
(the first letter is capitalizedi
), 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. ]
- Right-click on
NorePad打开
the item-New-Item, name itcommand
, 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).
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~