windown 右击菜单的注册表相关项

原文地址:http://windowsxp.mvps.org/context_folders.htm

 

Managing the Context Menu Entries manually using the Registry (For "Advanced" users)

* HKCR refers to HKEY_CLASSES_ROOT

Backup the Registry first

This entire article discusses about editing the registry to modify the context menu entries for an object. Before modifying the registry, it's advisable to create appropriate backups. Start Regedit.exe and navigate to the key which you want to modify. Look under each of the sub-keys for the context-menu entry name which you want to  remove. Before deleting the key, backup the corresponding branch if you want to undo the changes later. As you're not modifying various parts of the registry, exporting the related subkey should be enough. Once done, delete the sub key and the context menu is gone.

To know how to backup the registry completely, see the following pages:

Directory

The context-menu entries for Directories is built from these locations in the registry. The same applies for the Start button in the Taskbar

  • [HKCR/Folder/Shell/]

  • [HKCR/Folder/ShellEx/ContextMenuHandlers/]

  • [HKCR/Directory/Shell/]

  • [HKCR/Directory/ShellEx/ContextMenuHandlers/]

  • [HKCR/AllFilesystemObjects/shell/]

  • [HKCR / AllFilesystemObjects / shellex / ContextMenuHandlers/]

    NOTE:   AllFilesystemObjects is not specific to Folders, but applies to files as well.
Some more obscure locations - Based on the FolderType Template

For Music folders , the context menu loads from this additional location:

  • [HKCR/SystemFileAssociations/Directory.Audio/shell/]

  • [HKCR/SystemFileAssociations/Directory.Audio/shellex/ContextMenuHandlers/]

For Video folders

  • [HKCR/SystemFileAssociations/Directory.Video/shell/]

  • [HKCR/SystemFileAssociations/Directory.Video/shellex/ContextMenuHandlers/]

For Picture folders

  • [HKCR/SystemFileAssociations/Directory.Image/shell/]

  • [HKCR/SystemFileAssociations/Directory.Image/shellex/ContextMenuHandlers/]

Drives

To remove the context-menu entries for Drives , the following are the paths:

  • [HKCR/Drive/Shell/]
  • [HKCR/Folder/Shell/]
  • [HKCR/Drive/ShellEx/ContextMenuHandlers/]
  • [HKCR/Folder/ShellEx/ContextMenuHandlers/]
Namespace objects

To remove the context-menu entries for Namespace icons (My Computer, Recycle Bin etc), check here:

  • [HKCR/Folder/Shell/]
  • [HKCR/Folder/ShellEx/ContextMenuHandlers/]
  • [HKCR/CLSID/{Namespace-CLSID} /shell/]
  • [HKCR/CLSID/{Namespace-CLSID} / shellex / ContextMenuHandlers/]

Example - For My Computer the key would be:

  • [HKCR/CLSID/{20D04FE0-3AEA-1069-A2D8-08002B30309D}/shellex/ContextMenuHandlers/]
Files

The context-menu entries for Files are built from the following registry locations:

  • [HKCR/<ProgID>/shellex/ContextMenuHandlers/]
  • [HKCR /*/shellex/ContextMenuHandlers/]
  • [HKCR/*/shell/]
  • [HKCR/AllFilesystemObjects/shellex/ContextMenuHandlers/]

To remove the WinZip related context-menu entries, seen on the picture, you need to remove the entries here:

[HKCR/*/shellex/ContextMenuHandlers/WinZip]

Example: For Shortcuts (.lnk files), the context-menu is built from:

  • [HKCR/lnkfile/shellex/ContextMenuHandlers/]
  • [HKCR/exefile/shell/]
  • [HKCR/exefile/shellex/ContextMenuHandlers/]
  • [HKCR/AllFilesystemObjects/shell/]
  • [HKCR/*/shell/]
  • [HKCR/*/shellex/ContextMenuHandlers/]
  • [HKCR/AllFilesystemObjects/shellex/ContextMenuHandlers/]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值