Original: Add a program to the context menu (Notepad, UltraEdit, for example)
How to add the program to the right-click menu, here are Notepad, UltraEdit for example!
Take the Notepad program as an example:
1. Enter regedit in the run, open the registry, locate the Hkey_classes_root\*\shell branch, and if there is no Shell branch, right-click under *, and select "New-item" to create the Shell branch.
2. Under Shell, create a new "open with Notepad" item and enter "Open with Notepad" in the "Default" key Value field in the right window. The name and key value of the item can be arbitrary, with a clear meaning. Where the key value is displayed in the right-click menu.
3. Under "Open with Notepad" and then create a new command entry, in the right window, in the "Default" Key Value field, enter the path of the Notepad program, "notepad.exe%1". Where%1 represents the file parameter to open.
4. Close the registration form to take effect.
If you feel that the above operation is too cumbersome, you can also create a registry file, each time a slight modification, double-click Import.
Method of Establishment:
Open Notepad, paste the following registry information into Notepad, save as *.reg (* for the custom file name) file, double click to execute, right click to see if there is another menu.
Windows Registry Editor Version 5.00
; -------------------------
[HKEY_CLASSES_ROOT \ * \ shell]
; The above line corresponds to step 1
[HKEY_CLASSES_ROOT \ * \ shell \ Open with notepad]
@ = "Open with Notepad"
; The above two lines correspond to step 2
[HKEY_CLASSES_ROOT \ * \ shell \ Open in Notepad \ Command]
@ = "notepad.exe% 1"
; The above two lines correspond to step 3
----------
Take the UltraEdit program as an example:
1. Enter regedit in the run, open the registry, locate the Hkey_classes_root\*\shell branch, If you do not have a shell branch, right-click under * and select New-item to create a shell branch.
2. Create a new UltraEdit item under the Shell and enter "open with UltraEdit" in the "Default" key Value field in the right window. The name and key value of the item can be arbitrary, with a clear meaning. Where the key value is displayed in the right-click menu.
3. Create a new command entry under UltraEdit and enter the path to the UltraEdit program in the "Default" key Value field in the right window, for example "D:\ProgramFiles\UltraEdit-32\Uedit32.exe% 1 ". Where%1 represents the file parameter to open.
4. Close the registration form to take effect.
----------
If you feel that the above operation is too cumbersome, you can also create a registry file, each time a slight modification, double-click Import.
Method:
Open Notepad, paste the following registry information into Notepad, save as *.reg (* for the custom file name) file, double-click to execute, right click to see if there is another menu.
Windows Registry Editor Version 5.00
; -------------------------
[HKEY_CLASSES_ROOT \ * \ shell]
; The above line corresponds to step 1
[HKEY_CLASSES_ROOT \ * \ shell \ UltraEdit]
@ = "UltraEdit-32"
; The above two lines correspond to step 2
[HKEY_CLASSES_ROOT \ * \ shell \ UltraEdit \ Command]
@ = "D: \\ Program Files \\ UltraEdit-32 \\ uedit32.exe% 1"
; The above two lines correspond to step 3, note that the path backslash here must enter two
。
Add a program to the context menu (Notepad, UltraEdit, for example)