Add a program to the context menu (Notepad, UltraEdit, for example)

Source: Internet
Author: User
Tags ultraedit



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)


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.