上次我右键单击一个文件时,加载上下文菜单(context menu)需要整整两秒钟,这让我很恼火。为什么?好吧,因为我在我的电脑上安装了很多不同的应用程序,其中一些应用程序会自动添加到我的右键单击上下文菜单中(context menu)!
有些程序会询问您是否要将该选项添加到上下文菜单中,而其他程序则不会。现在同意了,我可能说了几次“是”,想着在我的右键菜单中拥有它会有多有用,但仍有很多我从未使用过!
如果您正在寻找一种从文件、文件夹和桌面的右键菜单(click menu)中删除应用程序的方法,您可以自己通过一些注册表黑客(registry hacking)来完成。如果您不想打扰注册表,请查看我之前关于免费软件实用程序的帖子以编辑右键单击上下文菜单(context menu)。
首先,看看我那可笑的长右键菜单(click menu):
现在这实在是太长了!有Dreamweaver、记事本(Notepad)、杀毒软件、Pinky basket、PKZIP、SmartFTP和PowerISO!哇(Whew)!那么我们如何将菜单自定义为更易于管理的内容呢?
首先,确保备份您的注册表,以防万一(case something)出现问题。现在通过转到开始打开(Start)注册表编辑器(registry editor),然后运行(Run),然后键入REGEDIT。
编辑文件的右键菜单
文件有一个右键菜单,文件夹有另一个。要访问文件,请转到此注册表项(registry key):
HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\
您现在应该会看到如下列表:
ContextMenuHandlers 下列出的所有文件夹都是在您右键单击Windows中的文件时显示的应用程序。您可以删除文件夹以删除该选项,也可以简单地禁用该文件夹,以防您稍后想将其恢复。
您可以通过单击左窗格(left pane)中的文件夹,然后右键单击右窗格中的键值并选择“(pane and choosing “)修改(Modify)”来禁用应用程序。
您需要做的就是在键值前面添加一个不带括号 ( – ) 的(–)减号,如下所示:(minus sign)
单击 OK(Click OK),然后单击顶部的刷新按钮,然后尝试右键单击该文件!该程序现在应该从上下文菜单(context menu)中消失了。如果减号选项(minus sign option)不起作用,您只需右键单击并选择(right-clicking and choosing) Delete即可删除该特定程序的整个密钥。
您可能会注意到右键单击上下文菜单(context menu)中的其他项目未显示在此键下。这是因为并非所有菜单项都存储在一个位置。您还可以找到存储在这些位置的程序的其他菜单项:
HKEY_CLASSES_ROOT\*\shell
HKEY_CLASSES_ROOT\AllFileSystemObjects\ShellEx\ContextMenuHandlers
编辑文件夹的右键菜单
您也可以按照上述文件夹的相同步骤进行操作;它只是一个不同的注册表路径(registry path)。要编辑右键单击文件夹的菜单选项,请转到此处:
HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\
HKEY_CLASSES_ROOT\Directory\shell
你必须滚动很多,但是一旦你到达那里,它应该看起来像这样:
同样,您可以删除 ContextMenuHandlers 下的文件夹,也可以通过编辑键并将 - 放在值前面来简单地禁用它们。就这么简单,就像一个魅力!
编辑桌面右键菜单
是的,Windows中的桌面在其(Windows)上下文菜单(context menu)的注册表中具有不同的位置。幸运的是,它的结构与我们上面显示的相同,因此您在弄清楚如何删除项目时不会遇到任何麻烦。
大多数程序从不向桌面右键单击菜单(right-click menu)添加任何内容,因此您不会经常使用此注册表黑客(registry hack)。桌面菜单(desktop menu)项的位置在这里:
HKEY_CLASSES_ROOT\Directory\Background\shell
HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers
如果您一直想摆脱桌面上下文菜单中那个烦人的(desktop context menu)小工具(Gadgets) 菜单选项(menu option),现在您可以了!
您还可以轻松地将任何应用程序添加到桌面右键菜单。只需右键单击(Just right-click)shell键(shell)并选择New - Key。将键命名为您想要的任何名称,因为它会出现在上下文菜单(context menu)中。在我的示例中,我创建了一个名为Paint的键。
现在右键单击新密钥并再次选择New – Key。这次命名关键命令(command)。现在双击右窗格中的(right-pane and paste)默认(Default)值并粘贴到程序的路径中。这是我的注册表项的样子:
您可以立即转到桌面,右键单击,您应该会看到程序的新选项!
以上就是Windows(Windows)中三个不同的上下文菜单(context menus),以及如何使用注册表编辑它们。如果您有任何疑问或问题,请发表评论。享受!
How to Manually Edit the Right Click Menu in Windows
The last time I right-clicked on a file, I was annoyed by the fact that it took a full two secondѕ to load the contеxt menu. Why? Well beсause I had installed ѕo many different applications on my computer that a couple of them аdded themselves to my right-clіck context menu automatically!
Some programs ask you if you want the option added to your context menu while others do not. Now granted, I probably said yes a couple of times, thinking how useful it would be to have that in my right-click menu, but there are still many I never use!
If you’re looking for a way to remove applications from right click menu for files, folders and the desktop, you can do it yourself with a little bit of registry hacking. If you don’t want to bother with the registry, check out my previous post on freeware utilities to edit the right-click context menu.
First, take a look at my ridiculously long right click menu:
Now that is just way too long! There’s Dreamweaver, Notepad, anti-virus, Pinky basket, PKZIP, SmartFTP, and PowerISO! Whew! So how can we customize the menu to something more manageable?
First, make sure to back up your registry in case something gets messed up. Now open the registry editor by going to Start, then Run and then typing in REGEDIT.
Edit Right Click Menu for Files
There is a right-click menu for files and another for folders. To get to the one for files, head over to this registry key:
HKEY_CLASSES_ROOT\*\shellex\ContextMenuHandlers\
You should now see a listing like this:
All the folders listed under ContextMenuHandlers are applications that show up when you right click on a file in Windows. You can either delete the folder to remove the option or simply disable the folder, which is better in case you want to bring it back later on.
You can disable an application by clicking on the folder in the left pane and then right-clicking on the key value in the right pane and choosing “Modify“.
All you need to do is add a minus sign without the parentheses (–) in front of the key value like shown below:
Click OK, then the refresh button at the top and then try right-clicking on the file! The program should now be gone from the context menu. If the minus sign option is not working, you can simply delete the entire key for that particular program by right-clicking and choosing Delete.
You may notice that there are extra items in your right-click context menu that are not showing up under this key. That’s because not all of the menu items are stored in one location. You may also find other menu items for programs stored at these locations:
HKEY_CLASSES_ROOT\*\shell
HKEY_CLASSES_ROOT\AllFileSystemObjects\ShellEx\ContextMenuHandlers
Edit Right Click Menu for Folders
You can also follow the same steps as shown above for folders; it’s just a different registry path. In order to edit the menu options for right clicking on folders, go here:
HKEY_CLASSES_ROOT\Folder\shellex\ContextMenuHandlers\
HKEY_CLASSES_ROOT\Directory\shell
You’ll have to scroll quite a bit, but once you get there, it should look something like this:
Again, you can either delete the folders under ContextMenuHandlers or you can simply disable them by editing the key and putting a – in front of the value. Simple as that and works like a charm!
Edit Right Click Menu for Desktop
Yes, the desktop in Windows has a different location in the registry for its context menu. Luckily, it’s got the same structure as we have shown above, so you won’t have any trouble figuring out how to remove items.
Most programs never add anything to the desktop right-click menu, so it won’t be often that you’ll use this registry hack. The location for the desktop menu items is here:
HKEY_CLASSES_ROOT\Directory\Background\shell
HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers
If you have always wanted to get rid of that annoying Gadgets menu option from the desktop context menu, now you can!
You can also add any application to the desktop right-click menu pretty easily. Just right-click on the shell key and choose New – Key. Name the key whatever you want as that will appear in the context menu. In my example, I created a key called Paint.
Now right-click on the new key and again choose New – Key. This time name the key command. Now double-click on the Default value in the right-pane and paste in the path to your program. Here is what my registry entries look like:
You can immediately go to the desktop, right-click and you should see a new option for your program!
So those are the three different context menus in Windows and how you can edit them using the registry. If you have any questions or problems, post a comment. Enjoy!