admin管理员组

文章数量:1531792

2024年5月6日发(作者:)

个人收集整理 仅供参考学习

在win7下把“清空回收站”添加到右键菜单

作为一个有强迫症加洁癖的人,是不允许桌面上存在任何图标的,但没有图标有往往

不方便,所以为了方便和简洁,许多功能就要自己去设计。以下两个方法可以在win7和win8

下把“清空回收站”添加到右键菜单.经本人测试第二种有效,虽然是英文的,不过很简单,

有一点基础的人都能看懂~~

一:

新建注册表粘贴下面内容并保存为.reg文件导入即可----以下注册表文件

内容REGEDIT4

;----------------------------------------

;添加清空回收站右键菜单;----------------------------------------

;添加到任意文件右键菜单上[HKEY_CLASSES_ROOT*shellempty]

;菜单显示名称(可选,如果指定名称,需删除MUIVerb段,即当前语言下系统默认

名称)

;@="清空回收站(&B)"

;命令状态(可选,弹出菜单时检查命令有效状态,如回收站为空时则灰色,可能稍

微影响性能)

"CommandStateHandler"="{c9298eef-69dd-4cdd-b153-bdbc}"

;菜单图标"Icon"=",-254"

;系统默认名称(可选,若@和MUIVerb均为设置,则显示注册表键名如:empty,可

直接设置键名为中文)

"MUIVerb"="@,-10564"

[HKEY_CLASSES_ROOT*shellemptycommand]

;清空回收站命令

"DelegateExecute"="{48527bb3-e8de-450b-8910-8c4099cb8624}"

;----------------------------------------

;添加到目录的右键菜单上[HKEY_CLASSES_ROOTDirectoryshellempty]

"CommandStateHandler"="{c9298eef-69dd-4cdd-b153-bdbc}"

"Icon"=",-254"

"MUIVerb"="@,-10564"

[HKEY_CLASSES_ROOTDirectoryshellemptycommand]

"DelegateExecute"="{48527bb3-e8de-450b-8910-8c4099cb8624}" ;添加到目

录内的空白区的内容菜单上

[HKEY_CLASSES_ROOTDirectorybackgroundshellempty]

"CommandStateHandler"="{c9298eef-69dd-4cdd-b153-bdbc}"

"Icon"=",-254"

"MUIVerb"="@,-10564"

[HKEY_CLASSES_ROOTDirectorybackgroundshellemptycommand]

"DelegateExecute"="{48527bb3-e8de-450b-8910-8c4099cb8624}"

;----------------------------------------

;添加到文件夹的右键菜单上[HKEY_CLASSES_ROOTFoldershellempty]

"CommandStateHandler"="{c9298eef-69dd-4cdd-b153-bdbc}"

"Icon"=",-254"

"MUIVerb"="@,-10564"

1 / 2

个人收集整理 仅供参考学习

[HKEY_CLASSES_ROOTFoldershellemptycommand]

"DelegateExecute"="{48527bb3-e8de-450b-8910-8c4099cb8624}"

;----------------------------------------

;添加到驱动器的右键菜单上[HKEY_CLASSES_ROOTDriveshellempty]

"CommandStateHandler"="{c9298eef-69dd-4cdd-b153-bdbc}"

"Icon"=",-254"

"MUIVerb"="@,-10564"

[HKEY_CLASSES_ROOTDriveshellemptycommand]

"DelegateExecute"="{48527bb3-e8de-450b-8910-8c4099cb8624}"

;----------------------------------------

;添加到我的电脑的右键菜单上

[HKEY_CLASSES_ROOTCLSID{20D04FE0-3AEA-1069-A2D8-08002B30309D}shell

empty]

"CommandStateHandler"="{c9298eef-69dd-4cdd-b153-bdbc}"

"Icon"=",-254"

"MUIVerb"="@,-10564"

[HKEY_CLASSES_ROOTCLSID{20D04FE0-3AEA-1069-A2D8-08002B30309D}shell

emptycommand]

"DelegateExecute"="{48527bb3-e8de-450b-8910-8c4099cb8624}"

;----------------------------------------

----以上注册表文件内容

资料个人收集整理,勿做商业用途

二:

To add the Empty Recycle Bin to the context menu for the desktop as well as your other folders:

料个人收集整理,勿做商业用途

Navigate: [HKEY_CLASSES_ROOTDirectoryBackgroundshell]

资料个人收集整理,勿做商业用途

Create new key named “empty”

Create new string values for each of the following:

资料个人收集整理,勿做商业用途

· "CommandStateHandler"="{c9298eef-69dd-4cdd-b153-bdbc}"

资料个人收集整理,勿做商业用途

· "Description"="@,-31332"

· "Icon"=",-254"

· "MUIVerb"="@,-10564"

Create new key named “command” under empty

Create new string value for the following:

"DelegateExecute"="{48527bb3-e8de-450b-8910-8c4099cb8624}"

资料个人收集整理,勿做商业用途

Good lunk!

2 / 2

本文标签: 菜单右键添加