How to add a right-click menu

How to add a right-click menu

1. Add commands to the right-click menu of all files

(1). Open "HKEY_CLASSES_ROOT \ *";

(2). Create a new "shell \ command \ command" branch under it, and set the key value of command to the absolute path of the executable program used to execute the command, and add "% 1" after it.
Example: In "HKEY_CLASSES_R
Create a sub-key "shell \ open \ command with WordPad" under OOT \ *, and set the key value of command to "c: \ windowsotepad.exe"
% 1 ", the command" Open with WordPad "will appear in the right-click menu (see Figure 2).
Description:
1. To delete such commands, simply delete the "command" subkey;
2.
Some people may ask him to do what I wrote, but what I got is different from mine. This is the shortcut key (N) in my command. Just add “(open with the WordPad)” ( & Amp; N) ".

2. Add a command to the right-click menu of a specific file type. Just mentioned Winzip. For ordinary file types, its right-click menu has "Add to
zip ", but for the types of compressed files it supports, such as * .zip, * .cab, * .rar, there are" Open with Winzip "and" Extract "in their right-click menu
to "," Extract to folder "," Create Self-Extractor (.EXE) "
And other commands, for self-extracting installation files (such as OICQ99b), the right-click menu has "Run with
"Winzip" command. Here is how to add commands to the right-click menu of a specific file type (take Play with winamp as an example in the right-click menu of an mp3 file):

(1). Open the "HKEY_CLASSES_ROOT \ mp3_auto_file" primary key;

(2). Create "shell \ Play with Winamp (& amp; P) \ command" under it, and set the key value of command to "C: \ Program"
files \ winamp \ winamp.exe% 1 ".
Note: When there are multiple softwares that can play mp3 files, we can add multiple commands in the right-click menu, such as adding "Play
with
"Unreal" and other commands, but how do we define a certain command as the default operation (that is, the bold command in the right-click menu)?
You must say, very simple thing! Move the mouse to an mp3 file, press shift while pressing the right key, and select "Open with" in the right-click menu to change it, but this is wrong, I don't believe you try it, so only when "Open" is selected in the right-click menu It will be opened with the program of your choice, otherwise, it will continue as usual. Because its default operation is not "open" this command. The real way is to change the default key value of the shell to the command you want to execute, for example, change the key value of the shell to "Winamp", the effect is shown in Figure 3.
Also, I do n’t know if you found it or not. I used “Play with
"Winamp" command, and "Winamp" is used here, isn't it a bit uncomfortable? Speaking of which, it really makes me sad. Originally, I used the shell to convert the default operation in the txt file (convert open and print) Very successful, but once converted "Play
with Winamp "and" Play with
"Unreal" will fail, and it will always fail to be converted. Finally, I realized that this might be a bug of "Bark Bar". It requires that the key name of the primary key during conversion is only valid when it is a single string. It is also valid for the combination of Chinese characters and English. But there can be no spaces in the middle (I don't know if this is related to my Win98 is D version?).

If you think the above method is not convenient and too complicated, in fact, Windows also provides a more convenient and safe method without operating the registry: open a folder and select "View / Folder Options / File Type",
Here you will find all the registered file types, select "mp3 file / edit", see the four buttons "New", "Edit", "Delete" and "Set as default" under the operation? No need to teach you anymore! Hey.

3. Add commands to the right-click menu of all folders. If you have used the Acdsee software, you will find that there is always "Browse with" in the right-click menu of the folder.
The command "acdsee" is similar to the Trend Pc-cillin 98 command in Pc-cillin. Here is how to add this type of command:

(1). Open the "HKEY_CLASSES_ROOT \ diretory \ shell" primary key;

(2). Create a new "command \ command" underneath it ... Needless to say below!
Instructions: 1. If you are careful, you will find that in the right-click menu of the drive, there is also "Browse
with acdsee "" Trend
"Pc-cillin98" and other commands, the drive is also a special folder, but it is impossible to add commands to the right-click menu of the drive through the above method. If you want to add commands to it, you must operate the "HKEY_CLASSES_ROOT \ drive \ shell" primary key ;

(3). There is also a folder subkey under the "HKEY_CLASSES_ROOT" primary key. As the name implies, operations on it will affect all folders, including the recycle bin. Remember! (Figure 4 is the "Browse" added in the recycle bin
with acdsee "command)

4. Add commands to the right-click menu of all files and folders. If you develop a program yourself, its operation objects are files and folders, so you want to add specific items to the right-click menu of all files and folders. Command to operate, this depends on the following.
Open the "HKEY_CLASSES_ROOT \ AllFilesystemObjects" primary key and create a new "shell \ command \ command" under it. The following operations are the same as before.

It should be pointed out that this is just a solution. If you look at the picture I captured, there will always be an "IconView" command, which appears in the right-click menu of all files and folders, but this is not the use of this This method is formed, may wish to make a comparison (see Figure 5), this command is extended through the application extension library iv_shext.dll in the software, so it appears in the middle of the right-click menu. Not at the top. (What? Let me talk about this method?) Because this method involves programming, limited to space and subject matter, I wo n’t talk about this method (shhh! Be quiet, I wo n’t.)

5. Add and delete some special commands

(1). Resource Manager In the Windows system, there are "Resource Manager" commands in the right-click menus of ordinary folders, drives, recycle bins, etc. If you only want to keep this command in the drive, you can first enter "HKEY_CLASSES_ROOT Delete the explore subkey from the \ folder \ shell "primary key, then create a new" explore \ command "subkey from the" HKEY_CLASSES_ROOT \ drive \ shell "primary key, so that the key value of commmand is" C: \ WINDOWS \ Explorer.exe / e, / idlist,% I,% L "how successful it is!


(2). Empty the recycle bin in the Windows system. Only the right-click menu of the recycle bin has the command "Empty recycle bin". Is n’t it too inconvenient? Okay, we can go through some transformations to make all The file menu has the command "Empty Recycle Bin", follow
me!
Our idea is to find out the source of the command "Empty Recycle Bin", and then copy it to "HKEY_CLASSES_ROOT \ *". Okay, let ’s find it first. I ’m looking for it. I finally found it! (Figure 6)-One more trick is to teach you that some special commands (especially the software provided by third parties) are all extended by the application extension library (.DLL), in the "shellex \ ContextMenuHandlers" of the registry You can find its traces in ".
We open "HKEY_CLASSES_ROOT \ CLSID \ {645FF040-5081-101B-9F08-00AA002F954E}
\ shellex \ ContextMenuHandlers ", you can find that there is a subkey named" {645FF040-5081-101B-9F08-00AA002F954E} ", which is the root of the" Empty Recycle Bin "command.
Once you find the root cause, it's much easier. Create a new subkey named "{645FF040-5081-101B-9F08-00AA002F954E}" under "HKEY_CLASSES \ ROOT \ * \ shellex \ ContextMenuHandlers". How cool is it? !


(3). Adding and deleting subcommands of the new command. I do n’t know if you have encountered this situation: you often write web pages by yourself. There is a command of “new html document” in the new command on the machine of the unit, but you It doesn't exist on the machine, and, with the continuous increase of various software, your new command pops up subcommands for longer and longer, enough choking!
It doesn't matter, don't worry, let me help you call out what should come out, let it go back if you shouldn't!
Open "HKEY_CLASSES \ ROOT \ .htm", add a primary key shellnew, and then create a new string value NullFile
, The key value is empty, now you right click on the desktop to see if it is new, is there a little more? As for deletion, I do n’t want you to let me say more!

(4). Adding commands such as cut, copy, and paste. Note that I am only talking about adding commands such as cut, copy, and paste. That is to say, for certain objects that do not have these commands in the right-click menu, you can add them. Those who originally had these commands, even deleting them, I could do nothing.
Well, I now use the recycle bin as an example to add commands such as cut, copy, and paste. Specifically, there are commands such as "open, cut, copy, paste, rename, delete, and attribute".
First open the "HKEY_CLASSES_ROOT \ CLSID \ {645FF040-5081-101B-9F08-00AA002F954E}" primary key, you will find a "shellfolder" sub-key, under this sub-key to create a new binary value attributes, its key value determines these commands Show and hide in the right-click menu. details as follows:
Command key value open 00 00 00 20
Cut 02 00 00 00
Copy 01 00 00 00
Paste 00 01 00 00
delete
20 00 00 00
Rename 10 00 00 00
Property 40 00 00
00
If you want to display certain commands, just add the key values ​​corresponding to the command, and the result will be the key value of the attributes. For example: When the attribute value is 00 00 00
00 (default), the above command will not be displayed, when it is 73 01 00
At 20 o'clock, all commands will be displayed (see Figure 7). Now it's ok, you can change "Recycle Bin" to the name you want to change, and you can also paste "Waste" into the Recycle Bin (but I don't think it has much effect, is it?)


(5). There is no "send to" command in the right-click menu of "send to" and the folders (such as my documents) in the menu, we can add it to it. For the method, please refer to the "empty recycle bin" command Method of addition. Just open "
HKEY_CLASSES_ROOT \ CLSID \ {450D8FBA-AD25-11D0-98A8-0800361B1103} \ shellex \ ContextMenuHandlers 」, create a new sub-key" {7BA4C740-9E81-11CF-99D3-00AA004AE837} "under it, and it's ok.

As for the "send to" menu, there is no need to operate it in the registry, its root source is the folder "C: \ windows \ SendTo", you only need to create a shortcut in this folder, Let it point to the folder you want to send to, and it's OK (as shown in Figure 8, where backup and software are new shortcuts to the folder).

(6). Find

In the Windows system, there is a command "Find ..." in the right-click menu of ordinary folders and drives. If we want to find the files deleted by mistake in the recycle bin, and there are many files in the recycle bin at this time, we You can add the "Find ..." command to the right-click menu of the recycle bin. The specific method can refer to 2, 5. The only subkey to be created is "{61E218E0-65D3-101B-9F08-061CEAC3D50D}". It's just that the command becomes "file or folder ..." (Figure 9)
Having said so much, should you now understand how to modify the right-click menu? All of the above is passed under the Chinese version of Windows98. Finally, I wish everyone can change their right-click menu to be unique, handy! !


Second, easily modify the right mouse button menu to operate Windows
Friends of 95/98 must know that by using the right mouse button pop-up menu can simplify many operations, such as WINZIP to compress files. Therefore, it gradually became "blessed", first WINZIP, then ACDSee, then Norton
AnTIVirus ... Do you also want to modify this pop-up menu? I hope this article can give you some inspiration.
Right-click pop-up menu for modifying files (hereinafter referred to as pop-up menu)
Run the registry editor (regedit.exe) and open "My Computer \ HKEY_CLASSES_ROOT \ * \ shellex \
ContextMenuHandler "branch. There are two primary keys HexWorkshopContextMenu and Winzip under this branch (Winzip and HexWorkshop are installed in the author's computer). After deleting, you can find Hex on the pop-up menu of the original file
Edit and Add to Zip are missing. When you want to add some executable files in the pop-up menu (take notepad as an example), you can do the following:

1. Create a new primary key named shell under "My Computer \ HKEY_CLASSES_ROOT \ *".

2. Under "shell", create a new primary key named aaa (aaa is the text displayed in the pop-up menu, here it is assumed to be replaced with "open with notebook").

3. Create a new primary key named command under aaa and modify its default key value to "c: \ windowsotepad.exe"
% 1 "(% 1 means that the file takes no parameters and only runs the notebook program).
4. You need to add new menu items and repeat steps 2 and 3.
In this way, the "Open with notebook" option appears on the pop-up menu, which avoids the trouble of repeatedly selecting the notebook from many opening methods when opening files that are not associated with the notebook, and can open the same in many ways The file does not change the original association of the file (such as using Photoshop and ACDSee to open a picture at the same time), which increases the flexibility of the file opening method.
Modify the pop-up menu of drives and folders
1. Modification of drive pop-up menu

(1) The modification method is basically the same as the modification of the pop-up menu of the above file, run the registry editor, open "My Computer \ HKEY_CLASSES_ROOT \ DRIVE", there are three primary keys DefaulTIcon, shell and shellex.
(2) Open the shell and you can see find and Browse with
ACDSee (ACDSee needs to be installed on the machine), which is also the text displayed on the pop-up menu, such as Browse with
ACDSee is changed to another name, such as "Browse with ACDSee", then English becomes "Browse with ACDSee" in Chinese. Adding a menu item also requires adding a new primary key under the shell. To delete a menu item, simply delete the corresponding primary key. For example, if you delete HexWorkshop, delete the HexWorkshopContextMenu primary key under the ContextMenuHandlers primary key under shellex.
2. Modification of the folder pop-up menu The modification of the folder pop-up menu is more complicated, involving two primary keys Directory and Folder (also located in "My Computer \ HKEY_
CLASSES_ROOT \ ”). After modifying the Folder primary key, it also affects the drive pop-up menu (modifying the Drive primary key will not affect others). If you add a new primary key (named aaaa) under the Folder \ Shell primary key, it will also The aaaa item appears in the drive and folder pop-up menus. Deletion will also affect the two. For example, if you delete the explore and open primary keys under Folder \ Shell, the explorer and open items of the pop-up menus will disappear. .To delete the winzip item of the drive pop-up menu, delete Folder \ Shellex \ Context
The winzip primary key under MenuHandlers is sufficient. To delete the winzip item in the folder pop-up menu, delete the winzip primary key under Directory \ Shellex \ ContextMenuHandlers. Only add and delete the folder pop-up menu, you need to operate the Directory (operation of the primary key Directory will not affect the drive's pop-up menu). If you delete the search menu item, you only need to remove the find primary key under Directory \ Shell, and add a new primary key under Shell.
3. It is relatively simple to modify this method from the "Folder Options", similar to associating files, as follows:

(1) Double-click "My Computer" to open "View / Folder Options" (For Windows 98, you can also click "Start / Settings / Folder Options").

(2) Click the "File Type" tab, select "Drive" from it, and then press the "Edit" button.

(3) In the subsequent edit file type dialog box, press the "New" button, enter a name (that is, the text on the pop-up menu) in the new operation dialog box that pops up, and enter it in the application application text box for operation Application name (can also be browsed to find), press "OK" after completion.
The steps to modify a folder are the same, just select the folder.

Through these methods, you can add your own software to the pop-up menu, whether it is a great sense of accomplishment to have a place with genuine software.
3. Use the right-click menu ingeniously


Moving and copying files is the most commonly used file operation in Windows. Generally, you first select the file, then use the right mouse button to select the "copy" or "cut" command, then open the target folder, and then "paste"; Open and tile the two explorer windows, and then drag and drop, you can also achieve the purpose of the operation. (Actually, the "send to" command in Windows is a very flexible copy command. We can manually add the "send to" object to easily copy the file. But these methods are not flexible enough, maybe Microsoft is aware of this, On windows
Me / XP added "copy to folder" and "move to folder" commands. It's in the "Edit" menu of the Explorer, open it if you don't believe it! It is a pity that it is still inconvenient in practical applications. No, the following operation methods introduced by the author let you add the "copy to folder" and "move to folder" commands to the right-click menu, which can greatly facilitate the operation.

1. Run the "Registry Editor" (RegEdit).

2. In the left pane of the "Registry Editor" window, expand "HKEY_CLASSES_ROOT \ AllFilesystem"
Objects \ shellex \ ContextMenuHandlers "branch.

3. Right-click "ContextMenuHandlers", select "New → Primary Key", and name the new primary key "Copy To".

4. Select "Copy
To key, in the right pane, double-click "default", then pop-up dialog box "value data" box, type "{C2FBB630-2971-11D1-A18C-00C04FD75D13}". Click "OK" button.

5. Click the "Exit" command in the "File" menu to close the "Registry Editor" window.
Add the "Move to Folder" command, the method steps are the same as above, but under "ContextMenuHandlers", create a new "Move"
To "primary key, set its value to" {C2FBB631-
2971-11D1-A18C-00C04FD75D13} ”.
Now, right-click a file (folder), in the shortcut menu that pops up, two options "copy to folder" and "move to folder" appear, click to try it, a browse file will pop up In the folder window, after selecting 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 menus displayed in IE are all set here. The common "network ants" and "Internet Express" right-click download information is also stored here, just find the main key entry to display the advertisement and delete it.

Ac Power Supply

Ac Power Supply,Ac Dc Power Supply,Dual Rail Power Supply,18V Ac Power Supply

Yangzhou IdealTek Electronics Co., Ltd. , https://www.idealtekpower.com