在Windows桌面中给自己添加一个便捷工具的菜单(如下图所示),很多小伙伴问这是怎么弄的,其实很简单,只需要添加几行代码即可搞定,实在搞不定的我们也提供了成品,可以直接使用哦~

在Windows桌面右键菜单中添加一个便捷工具 第1张

在Windows桌面右键菜单中添加一个便捷工具 第2张

代码如下

将下面的代码使用专业的文本编辑器或代码编辑器进行编辑保存为 .reg 的格式文件,然后直接 双击文件->选择继续 即可添加完成

不建议使用自带的记事本进行编辑,因为可能会出现一些未知问题。

成品:http://d.52lc.top/f/33710033-1242432961-feec1b

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT]
"Icon"="SHELL32.dll,-022"
"MUIVerb"="便捷工具(&A)"
"Position"="Bottom"
"SubCommands"=""

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell]

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\01notepad]
"Icon"="notepad.exe"
"MUIVerb"="记事本"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\01notepad\Command]
@="notepad.exe"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\02calc]
"Icon"="calc.exe"
"MUIVerb"="计算器"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\02calc\Command]
@="calc.exe"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\03mspaint]
"Icon"="mspaint.exe"
"MUIVerb"="画图工具"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\03mspaint\Command]
@="mspaint.exe"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\04control]
"Icon"="control.exe"
"MUIVerb"="控制面板"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\04control\command]
@="control.exe"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\05管理工具]
@="管理工具"
"Icon"="%SystemRoot%\\System32\\imageres.dll,-114"
[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\05管理工具\Command]
@="explorer.exe shell:::{D20EA4E1-3957-11D2-A40B-0C5020524153}"

;[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\20kill explorer]
;@="刷新Explorer"
;"Icon"="%windir%\\System32\\SHELL32.dll,-16739"
;"Position"="Top"
;
;[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\20kill explorer\Command]
;@="C:\\Windows\\restart.bat"

;[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\03cmd]
;"Icon"="cmd.exe"
;"MUIVerb"="命令提示符"
;
;[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\03cmd\Command]
;@="cmd.exe"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\06regedit]
"Icon"="regedit.exe"
"MUIVerb"="注册表编辑器"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\06regedit\Command]
@="regedit.exe"

;[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\09网络连接]
;@="网络连接"
;"Icon"="C:\\Windows\\System32\\netshell.dll,0"
;[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\09网络连接\Command]
;@="explorer.exe shell:::{7007ACC7-3202-11D1-AAD2-00805FC1270E}"


[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\10Network]
"Icon"="SHELL32.dll,18"
"MUIVerb"="网络选择"
"Position"="Bottom"
"SubCommands"=""

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\10Network\Shell]

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\10Network\Shell\Wired_disabled]
@="禁用有线"
"Icon"="%windir%\\System32\\SHELL32.dll,131"
"Position"="Top"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\10Network\Shell\Wired_disabled\command]
@="netsh interface set interface 以太网 disabled"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\10Network\Shell\Wired_enabled]
@="启用有线"
"Icon"="%windir%\\System32\\SHELL32.dll,296"
"Position"="Top"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\10Network\Shell\Wired_enabled\command]
@="netsh interface set interface 以太网 enabled"


[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\10Network\Shell\Wireless_disabled]
@="禁用无线"
"Icon"="%windir%\\System32\\SHELL32.dll,131"
"Position"="Top"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\10Network\Shell\Wireless_disabled\command]
@="netsh interface set interface wlan disabled"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\10Network\Shell\Wireless_enabled]
@="启用无线"
"Icon"="%windir%\\System32\\SHELL32.dll,296"
"Position"="Top"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\10Network\Shell\Wireless_enabled\command]
@="netsh interface set interface wlan enabled"


[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\11Power]
"Icon"="SHELL32.dll,-28"
"MUIVerb"="电源"
"Position"="Bottom"
"SubCommands"=""

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\11Power\Shell]

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\11Power\Shell\关机]
@="关机"
"Icon"="C:\\Windows\\system32\\Shell32.dll,-28"
"Position"="Top"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\11Power\Shell\关机\Command]
@="C:\\Windows\\system32\\shutdown.exe -s -t 0"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\11Power\Shell\重新启动]
@="重新启动"
"Icon"="C:\\Windows\\system32\\Shell32.dll,-290"
"Position"="Top"

[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\11Power\Shell\重新启动\Command]
@="C:\\Windows\\system32\\Shutdown.exe -r -t 00"

;[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\11Power\Shell\重启到高级选项]
;@="重启到高级选项"
;"Icon"="C:\\Windows\\system32\\Shell32.dll,-290"
;"Position"="Top"
;
;[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\11Power\Shell\重启到高级选项\Command]
;@="C:\\Windows\\system32\\Shutdown.exe -r -o -f -t 00"


;[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\12UAC设置]
;@="UAC设置"
;"Icon"="C:\\Windows\\system32\\UserAccountControlSettings.exe,0"
;[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\12UAC设置\Command]
;@="UserAccountControlSettings.exe"
;
;
;[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\13管理网络密码]
;@="管理网络密码"
;"Icon"="%SystemRoot%\\System32\\usercpl.dll,-1"
;[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\13管理网络密码\Command]
;@="explorer.exe shell:::{60632754-C523-4B62-B45C-4172DA012619}"


;[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\11重启到高级选项]
;@="重启到高级选项"
;"Icon"="C:\\Windows\\system32\\Shell32.dll,-290"
;"Position"="Top"
;
;[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\11重启到高级选项\Command]
;@="C:\\Windows\\system32\\Shutdown.exe -r -o -f -t 00"
;
;
;[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\14远程桌面连接]
;@="远程桌面连接"
;"Icon"="%SystemRoot%\\system32\\mstsc.exe,0"
;[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\14远程桌面连接\Command]
;@="mstsc.exe"
;
;[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\15设备和打印机]
;@="设备和打印机"
;"Icon"="%SystemRoot%\\system32\\devicecenter.dll,-1"
;[HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT\Shell\15设备和打印机\Command]
;@="explorer.exe shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A}"
;

;需要删除的话,开始-->运行-->regedit,输入以下路径:
;计算机\HKEY_CLASSES_ROOT\DesktopBackground\Shell\Appearance_WAT
;点选左栏Appearance_WAT,右键删除即可
;琳晨博客 52lc.top