Right-click to add a custom menu

Source: Internet
Author: User

First, open registry management program regedit.exe

Start --> Run --> regedit

Select hkey_classes_root and expand.


First, right-click the file type menu,

My system is: sp1 of win2003. There is no "shell" primary key in the lower-level primary key of hkey_classes_root *. We can create a new one by ourselves. create a primary key "open with Notepad ". next, create a new primary key "command" and then "command", double-click the default on the right side, and type "c: windowsotepad.exe" in the Notepad program path, OK.
In this case, right-click the file type and choose the menu ..
Close Registry Editor. Check the effect. Just right-click the file type menu.

Below, we add the right-click menu in the folder type.
Continue to view my operations.
Expand the hkey_classes_root primary key.
Find the secondary primary key folder of the folder. expand. it is also in the shell primary key. new. similar to the preceding steps. create a primary key "Notepad open @_@". next, create a new primary key "command" and then "command", double-click the default on the right side, and type "c: windowsotepad.exe" in the Notepad program path, OK.

In this way, you can right-click the folder type to add all menu operations. See the effect below.

Of course, it is best to add parameters when we are creating. In this way, we can accept data in Notepad. For more information, see.
After the path, add "% 1" to pull it.
The default value of a specific command is c: windowsotepad.exe "% 1"
In this way, you can pass parameters to notepad.

Finally, I exported the registry key. Khhe, it is much easier to add directly.


Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT * shell open \ command in Notepad]
@ = "C: \ windows \ notepad.exe" % 1 ""


Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOTFoldershell notepad open the \ command]
@ = "C: \ windows \ notepad.exe" % 1 ""

Save it as the reg file and import it to the Registry. If the parameter is not included


By clin003 http://blog.csdn.net/clin003 at 20070126


Contact info. QQ: 27020287

Mail: qq27020287@gmail.com

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.