Windows Right-click menu settings and App tips

Source: Internet
Author: User
Tags compressed file types ultraedit

http://blog.163.com/lee_honleon/blog/static/555251522008014258896/need to modify the registry, it is very troublesome. It is better to unload the thunder and reload, will not affect what, a good.
If you must change, I have a related article, for your reference.
Note that you must first make a backup of the registry before changing it.

Windows Right-click menu settings and App tips

First, right-click menu big reveal

In the Windows system, as long as the desktop or file (folder) Right-click, will pop up a shortcut menu, there are some common operation of the file (folder) commands, through the right-click menu, you can easily user to the file of certain actions. Don't know if you're interested in it? Do you want to make a makeover on it and have your own special right-click menu? Do not worry, after reading the great disclosure of this article, you will become a master in this respect!
Modifying the context menu should be in the registry, specifically, under the HKEY_CLASSES_ROOT root key (here is the root of all commands in the right-click menu Oh!). )。 To expand the root key, there are two main subkeys under it: the extension key (. + extension) and the class definition key (1). Generally, as long as it is a registered extension in the Windows system, under the HKEY_CLASSES_ROOT has "• The extension" subkey, some information about the extension, the right-click menu for a particular type of file modification, is the key or "extension file" key operation.

1. Add commands in the right-click menu of all Files
If you have WinZip, UltraEdit, and so on on your system, there are commands like "Add to zip" and "UltraEdit-32" When you right-click on any of the files (of course, WinZip is slightly different, I'll talk about it later). It is added by:
(1). Open "hkey_classes_root\*";
(2). Under it, create a new "shell\ Command \command" Branch, and then set the command's key value to the absolute path of the executable program that was used to execute it, and then add "%1".
Example: In "Hkey_classes_r
oot\* "New" shell\ with WordPad open \command "subkey, set command key value to" C:\Windows\Notepad.exe%1 ", will appear in the right-click menu" Open with WordPad "command (2).
Description
1. To delete this type of command, simply delete the "command" sub-key;
2. Some people may ask him to do what I write, but the reason for getting it is somewhat different from mine, which is that my command has a shortcut key (N), as long as "open with WordPad" after "(& N) "Can.

2. Add commands to the right-click menu for a specific file type
Just mentioned Winzip this software, for the normal file type, its right-click menu has "Add to zip", but to its supported compressed file types, such as *.zip, *.cab, *.rar in its right-click menu has "Open with Winzip", "Extract To, ' Extract to Folder ', ' Create self-extractor (. EXE) ', for self-extracting installation files (such as oicq99b), the "Run with Winzip" command in the right-click menu. Here is the command Add method for the right-click menu for a specific file type (for example, play with Winamp in the context menu of the mp3 file):
(1). Open "Hkey_classes_root\mp3_auto_file" primary key;
(2). Under the new "Shell\play with Winamp (& P) \command ", set the command's key value to" C:\Program files\winamp\winamp.exe%1 ".
Note: When more than one software can play the mp3 file, we can add multiple commands in the right-click menu, such as "Play with Unreal", but how do we define a command as the default action (that is, the Bold command in the right-click menu)?
You must say, very simple thing! Move the mouse to a MP3 file, press SHIFT while pressing the right mouse button, select "Open with" in the right-click menu to change, but this is wrong, do not believe you try, so only in the right-click menu "Open" will only use the program you choose to open it, otherwise, it still as always. Because its default action is not to "open" this command. The real way is to change the shell's default key value to the command you want to execute, such as changing the shell's key value to "Winamp", as shown in effect 3.
Also, do not know that you found no, I used in the previous example is "Play with Winamp" command, and here is the "Winamp", is not a bit of a corresponding? Speaking of this, it really makes me sad, originally i in the TXT document with the shell for the default operation of the conversion (convert open and print) quite successful, but a conversion "play with Winamp" and "Play with Unreal" failed, always converted, Finally understand that this could be a bug in the "Plague Bar", which requires that the key name of the primary key be converted to a single string when it is valid. The combination of Chinese characters and English is also valid, but there can be no space in the middle (I do not know if this is related to my Win98 is the D version?). )。
If you think the above method is inconvenient and too complex, in fact, Windows also provides a more convenient and secure way to not operate the registry: Open a folder, select "View/Folder Options/File Type", here you will find all the registered file types, select "MP3 File/edit" , see the "New", "edit", "delete", "Set as Default" buttons below the actions below? Four. No, I'll teach you again! Hey.

3. Add commands to the right-click menu in all folders
If you have used acdsee this software, you will find that in the folder's right-click menu there is always "Browse with ACDSee" This command, the same kind of Pc-cillin trend Pc-cillin 98 command, the following additional methods of the class command:
(1). Open "Hkey_classes_root\diretory\shell" primary key;
(2). Under the new "Command \command" ... Let's not talk about it!
Note: 1. If you are careful, you will find that the drive is also a special folder in the right-click menu of the driver, as well as the "Browse with ACDSee" "Trend pc-cillin98" command. However, it is not possible to add commands to the right-click menu of the drive by using the above method. If you want to add a command, you must operate on the "Hkey_classes_root\drive\shell" PRIMARY Key, (3). Under the "HKEY_CLASSES_ROOT" primary key there is also a folder subkey, as the name implies, the operation on it will affect all folders , including Recycle Bin, remember! (Figure 4 adds the "Browse with ACDSee" command in the Recycle Bin)

4. Add commands to the right-click menu of all files and folders
If you develop a program yourself, it's working with files and folders, so you want to add specific commands to all the files and folders in the right-click menu, which depends on the following.
Open the "hkey_classes_root\allfilesystemobjects" primary key, under which you create a new "shell\ command \command", and the following actions are the same as before.
It should be pointed out that this is only a solution, if you look at the picture I have captured, you will find that there is always a "iconview" command, appear in all the files and folders in the right-click menu, but this is not formed in this way, you might as well contrast (5), This command is extended by the application extension library Iv_shext.dll in the software, so it appears in the middle of the right-click menu. Instead of at the top. What Let me talk about this method? Since this approach involves programming, confined to space and subject matter, I'm not going to talk about this method (Shh!). Be quiet, I'm not. )

5. Adding and removing some special commands
(1). Resource Manager
In Windows system, there is an "explorer" command in the right-click menu for normal folders, drives, recycle bins, and so on, if you want to keep the command only in the drive, you can first delete the Explore subkey in the "Hkey_classes_root\folder\shell" PRIMARY key , and then create a new "Explore\command" subkey in the "Hkey_classes_root\drive\shell" primary key, so that the Commmand key value is "c:\windows\explorer.exe/e,/idlist,%i ,%l "How, Success!"
(2). Emptying the Recycle Bin
In the Windows system, only in the Recycle Bin in the right-click menu has "empty Recycle Bin" command, is not too inconvenient, OK, we can undergo a transformation, so that all the File menu has "empty Recycle Bin" command, follow me!
Our idea is to find out the source of the "Empty Recycle Bin" command, and then copy it to "hkey_classes_root\*". Good, or first to find it, I find AH find, finally found! (Figure 6)--Another way to teach you is that some special commands (especially software provided by third parties) are extended by the application library (. DLL), you can find traces of it in the "Shellex\contextmenuhandlers" registry. We open "hkey_classes_root\clsid\{645ff040-5081-101b-9f08-00aa002f954e} \shellex\contextmenuhandlers" and we can see that there is a "{ 645FF040-5081-101B-9F08-00AA002F954E} ", which is the root of the" Empty Recycle Bin "command.
Find the source, it is much easier, under "hkey_classes\root\*\shellex\contextmenuhandlers" a new key named "{645ff040-5081-101b-9f08-00aa002f954e}" The sub-keys, how, cool enough!
(3). Adding and removing subcommands for new commands
Do not know if you have encountered this situation: you often manually write Web pages, in the unit of the new command on the machine has the "New HTML Document" command, but your machine is not, and, with the increasing variety of software, your new command pop-up command more and more time, a lot of it! It doesn't matter, don't worry, let me help you to get out of the call out, should not come to let it go back!
Open "hkey_classes\root\.htm", add a primary key shellnew, and then create a new string value Nullfile, the key value is empty, you now right-click on the desktop, see New, is not a bit more what? As for the deletion, I do not want you to let me say more!
(4). Adding commands such as cut, copy, paste, etc.
Note that I just talk about the addition of commands such as Cut, copy, paste and so on, which means that some objects that do not have these commands in the right-click menu can be added, and for those objects that already have these commands, I can't even delete them.
OK, I now take the Recycle Bin as an example, to cut, copy, paste and other commands to add, specifically, there are "open, cut, copy, paste, rename, delete, attributes," and other commands to add. First open the "hkey_classes_root\clsid\{645ff040-5081-101b-9f08-00aa002f954e}" PRIMARY key, you will find that there are "ShellFolder" sub-keys, The new binary value attributes is created under this subkey, and its key value determines the display and hiding of these commands in the right-click menu. Specific as follows:
Command Key value
Open 00 00 00 20
Cut 02 00 00 00
Replication 01 00 00 00
Paste 00 01 00 00
Delete 20 00 00 00
Renaming 10 00 00 00
Property 40 00 00 00
If you want to display some commands, simply add the corresponding key values for the command, and the result will be the key value of the attributes. For example: When the attributes value is 00 00 00 00 (default), the above command is not displayed, and when 73 01 00 20 o'clock, all commands (7) are displayed. Now, you can change the "Recycle Bin" to the name you want to change, and you can paste the "waste" into the Recycle Bin (but I don't see how much it works, right?). )
(5). " Send To "and its menu
Some folders (such as My Documents) in the right-click menu do not have "send to" this command, we can add to it, the method can refer to the "Empty Recycle Bin" command to add methods. is to open "Hkey_classes_root\clsid\{450d8fba-ad25-11d0-98a8-0800361b1103}\shellex\contextmenuhandlers", under which you create a new "{ 7ba4c740-9e81-11cf-99d3-00aa004ae837} "sub-key, it's OK.
As for the "Send to" menu, it is not necessary to operate in the registry, it is the root of the "C:\windows\SendTo" This folder, you just need to create a new shortcut in this folder, so that it points to the folder you want to send To, OK (8, where backup, Software to a new shortcut to the folder).
(6). Find
In the Windows system, the normal folder and the drive's right-click menu has "find ..." this command, if we want to find in the Recycle Bin deleted files, and at this time there are more files in the Recycle Bin, we can add "find ..." in the Recycle Bin right-click menu. The specific method can be referenced in 2, 5. Just need to create a new subkey of "{61e218e0-65d3-101b-9f08-061ceac3d50d}". Only the command becomes a "file or Folder ..." (9)
Speaking so much, you should now know how to modify the right-click menu? All of the above are in the Windows98 Chinese version of the passage. Finally, I wish everyone can put their own right-click menu to change the unique, handy!!



Second, easy to modify the right mouse button menu

Friends who have worked with Windows 95/98 must know that using the right mouse button's pop-up menu can simplify many things, such as using WinZip to compress files. So it also gradually "get fat" up, first WinZip, then ACDSee, then Norton AntiVirus ... Do you want to make changes to this pop-up menu as well? I hope this article will give you some inspiration.


Modify the file's right mouse button pop-up menu (hereinafter referred to as pop-up menu)
Run Registry Editor (Regedit.exe) and open the "My Computer \hkey_classes_root\*\shellex\ contextmenuhandler" branch. Under this branch there are two primary keys Hexworkshopcontextmenu and WinZip (the author's computer is equipped with WinZip and Hexworkshop), delete the original file can be found on the pop-up menu of the hex Edit and add to zip two missing. When you want to add some executable files to the pop-up menu (take Notepad as an example), you can do the following:
1. Under "My Computer \hkey_classes_root\*", create a new primary key named Shell.
2. Under Shell, create a new AAA (AAA is the text that appears in the pop-up menu, assuming the primary key is replaced with "Open with a Notebook").
3. Create a new primary key named command under AAA, modify its right default key value to "C:\Windows\Notepad.exe%1" (% 1 means that the file does not have parameters and only runs the Notebook program).
4. To add a new menu item, repeat steps 2 and 3.
In this way, the "Open with Notebook" option appears on the pop-up menu, avoiding the hassle of repeatedly selecting a notebook from many open styles when opening a file that is not associated with a notebook. And you can open the same file in a variety of ways without changing the original association of the file (such as opening a picture with Photoshop and ACDSee at the same time), increasing the flexibility of how the file is opened.


Modify the pop-up menu for drives and folders
1. Changes to the drive pop-up menu
(1) The modification method is basically the same as the pop-up menu of the above file, run Registry Editor, open "My Computer \hkey_classes_root\drive", there are three primary keys DefaultIcon, Shell and ShellEx.
(2) Open the shell to see Find and browse with ACDSee (the machine needs to have ACDSee), which is also displayed on the pop-up menu text, such as the browse with ACDSee to another name, such as "Browse with ACDSee", Then English becomes Chinese "Browse with ACDSee". Adding a menu item also requires adding a new primary key under the shell, deleting the menu item and deleting the corresponding primary key, such as deleting Hexworkshop, Then delete the Hexworkshopcontextmenu primary key under the Contextmenuhandlers primary key under ShellEx.
2. Changes to the folder popup menu
The folder pop-up menu is more complex to modify, involving two primary key directory and folder (also located under "My Computer \hkey_ classes_root\"). There is also an effect on the drive pop-up menu after modifying the folder primary key (modifying the primary key does not affect the other), such as adding a new primary key (named AAAA) under the Folder\shell primary key, and AAAA in the drive and folder pop-up menu. Deletion also has an effect on both, such as removing the explore and open primary keys under Folder\shell, both the explorer of the pop-up menu and the opening of the two items will disappear. To remove WinZip from the drive pop-up menu, delete the WinZip primary key under Folder\shellex\context menuhandlers. Instead of deleting the WinZip item in the folder pop-up menu, delete the WinZip primary key under Directory\shellex\contextmenuhandlers. Only the folder pop-up menu can be deleted, you need to do directory operations (operation of primary key directory does not affect the drive's pop-up menu). If you delete a menu item, simply remove the find primary key under Directory\shell and add a new primary key under the shell.
3. Modify from Folder Options
This method is relatively simple, similar to the file association, the method is as follows:
(1) Double click on "My Computer" to open "View/Folder Options" (for Windows98, you can also click "Start/Settings/Folder Options").
(2) Click the "File Type" tab, select "Drive" from the box and press the "Edit" button.
(3) in the subsequent Edit File Type dialog box, press the New button, enter a name in the New Action dialog box that pops up (that is, the text on the pop-up menu), enter the application name in the Application text box for the action (also available for browsing), and press OK when you are done.
The steps to modify the folder are the same, as long as you select the folder.
With these methods, you can add your own software to the pop-up menu, and the original software to occupy a place is not very fulfilling.

Third, clever use of the right-click menu

Moving and copying files is the most commonly used file operation for Windows, usually by selecting the file, then right-clicking the "copy" or "Cut" command, then opening the target folder, then "pasting", and then opening and tiling the two explorer windows, and then dragging and dropping, to achieve the purpose of the operation. (In fact, the "Send to" command of Windows, is a very flexible copy command, we can manually add "Send to" object, you can easily copy files.) But these methods are not flexible enough, and perhaps Microsoft is aware of this, adding the "Copy to Folder" and "Move to Folder" commands in Windows ME/XP. It is in the explorer's "Edit" menu, do not believe you open to see! Unfortunately in the actual application is still slightly inconvenient. This does not, the author describes the following methods of operation allows you to the "Copy to Folder" and "Move to Folder" command added to the right-click menu, which can greatly facilitate operation.
1. Run the Registry Editor (RegEdit).
2. In the left pane of the Registry Editor window, expand the Hkey_classes_root\allfilesystem objects\shellex\contextmenuhandlers branch.
3. Right-click on "Contextmenuhandlers" and select "New → primary key" to name the new primary key "Copy to".
4. Select the "Copy to" primary key, and in the right pane, double-click Default, and in the Pop-up dialog box, type "{C2FBB630-2971-11D1-A18C-00C04FD75D13}" in the Value data box. Click the OK button.
5. Click the Exit command on the File menu to close the Registry Editor window.

Add the Move to Folder command, as above, just under "contextmenuhandlers", create a new "move to" primary key and set its value to "{C2FBB631-2971-11D1-A18C-00C04FD75D13}".

Now, right click on a file (folder), in the System Pop-up shortcut menu, the "Copy to Folder" and "Move to Folder" two options, click to try, the window will pop up a browse folder, select the target folder, click OK to achieve the purpose of copying or moving files.

Expand the registry to Hkey_current_ User\software\microsoft\internet Explorer\menuext, the additional right-click menu displayed in IE is set here, common "network ants" and "Internet Express" Right-click to download the information is also stored here, just find the display of the primary key entry to delete the ads.

Windows Right-click menu settings and application tips

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.