电脑右键常用设置菜单,共12条常用命令

所有目录背景(含桌面)右键常用设置效果图:

20231030-1

注册表如下:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shell\SetMenu]
"Icon"="SHELL32.dll,314"
"MUIVerb"="常用设置(&A)"
"SubCommands"=""
"Position"="bottom"

[HKEY_CLASSES_ROOT\Directory\Background\shell\SetMenu\Shell]

[HKEY_CLASSES_ROOT\Directory\Background\shell\SetMenu\Shell\0 settings]
"MUIVerb"="设置 (&S)"
"Icon"="shell32.dll,314"

[HKEY_CLASSES_ROOT\Directory\Background\shell\SetMenu\Shell\0 settings\command]
@="explorer ms-settings:"

[HKEY_CLASSES_ROOT\Directory\Background\shell\SetMenu\Shell\00 services]
"MUIVerb"="服务 (&0)"
"Icon"="%windir%\\system32\\filemgmt.dll,0"

[HKEY_CLASSES_ROOT\Directory\Background\shell\SetMenu\Shell\00 services\command]
@="mmc services.msc"

[HKEY_CLASSES_ROOT\Directory\Background\shell\SetMenu\Shell\01 regedit]
"MUIVerb"="注册表 (&1)"
"Icon"="regedit.exe"

[HKEY_CLASSES_ROOT\Directory\Background\shell\SetMenu\Shell\01 regedit\command]
@="D:\\Startup\\RegistryFinder\\RegistryFinder.exe"

[HKEY_CLASSES_ROOT\Directory\Background\shell\SetMenu\Shell\02 gpedit]
"MUIVerb"="组策略 (&2)"
"Icon"="C:\\Windows\\System32\\shell32.dll,90"

[HKEY_CLASSES_ROOT\Directory\Background\shell\SetMenu\Shell\02 gpedit\command]
@="mmc gpedit.msc"

[HKEY_CLASSES_ROOT\Directory\Background\shell\SetMenu\Shell\03 control]
"Icon"="control.exe"
"MUIVerb"="控制面板 (&3)"

[HKEY_CLASSES_ROOT\Directory\Background\shell\SetMenu\Shell\03 control\command]
@="control.exe"

[HKEY_CLASSES_ROOT\Directory\Background\shell\SetMenu\Shell\04 GodMode]
"Icon"="SHELL32.dll,-025"
"MUIVerb"="上帝模式 (&4)"

[HKEY_CLASSES_ROOT\Directory\Background\shell\SetMenu\Shell\04 GodMode\command]
@="explorer shell:::{ED7BA470-8E54-465E-825C-99712043E01C}"

[HKEY_CLASSES_ROOT\Directory\Background\shell\SetMenu\Shell\05 miguiresource]
"MUIVerb"="任务计划 (&5)"
"Icon"="%windir%\\system32\\miguiresource.dll,1"

[HKEY_CLASSES_ROOT\Directory\Background\shell\SetMenu\Shell\05 miguiresource\command]
@="mmc taskschd.msc /s"

[HKEY_CLASSES_ROOT\Directory\Background\shell\SetMenu\Shell\06 event]
"MUIVerb"="事件查看器 (&6)"
"Icon"="%windir%\\system32\\miguiresource.dll,0"

[HKEY_CLASSES_ROOT\Directory\Background\shell\SetMenu\Shell\06 event\command]
@="mmc eventvwr.msc /s"

[HKEY_CLASSES_ROOT\Directory\Background\shell\SetMenu\Shell\07 CompMgmt]
"MUIVerb"="计算机管理 (&G)"
"Icon"="shell32.dll,88"

[HKEY_CLASSES_ROOT\Directory\Background\shell\SetMenu\Shell\07 CompMgmt\command]
@="C:\\Windows\\system32\\CompMgmtLauncher.exe"

[HKEY_CLASSES_ROOT\Directory\Background\shell\SetMenu\Shell\08 ReStartExplorer]
"MUIVerb"="重启Explorer (&R)"
"Icon"="C:\\Windows\\System32\\imageres.dll,229"

[HKEY_CLASSES_ROOT\Directory\Background\shell\SetMenu\Shell\08 ReStartExplorer\command]
@="mshta vbscript:createobject(\"shell.application\").shellexecute(\"tskill.exe\",\"explorer\",\"\",\"open\",0)(close)"

[HKEY_CLASSES_ROOT\Directory\Background\shell\SetMenu\Shell\09 FlushDns]
"MUIVerb"="刷新DNS缓存 (&D)"
"Icon"="shell32.dll,293"

[HKEY_CLASSES_ROOT\Directory\Background\shell\SetMenu\Shell\09 FlushDns\command]
@="ipconfig /flushdns"

[HKEY_CLASSES_ROOT\Directory\Background\shell\SetMenu\Shell\10 ShowHide]
@=""
"Icon"="imageres.dll,193"
"MUIVerb"="隐藏文件+后缀 (&X)"

[HKEY_CLASSES_ROOT\Directory\Background\shell\SetMenu\Shell\10 ShowHide\command]
@="wscript C:\\\\windows\\\\ShowHideFileExt.vbs"

ShowHideFileExt.vbs代码如下:(放在C:\windows内,改变路径的话,注册表内路径要同步更改)

Dim WSHShell
Set WSHShell = WScript.CreateObject("WScript.Shell")
if WSHShell.RegRead("HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ShowSuperHidden") = 1 then
WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ShowSuperHidden", "0", "REG_DWORD"
WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden", "2", "REG_DWORD"
WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt", "1", "REG_DWORD"
WSHShell.SendKeys "{F5}"
else
WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\ShowSuperHidden", "1", "REG_DWORD"
WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\Hidden", "1", "REG_DWORD"
WSHShell.RegWrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced\HideFileExt", "0", "REG_DWORD"
WSHShell.SendKeys "{F5}"
end if
Set WSHShell = Nothing
WScript.Quit(0)
© 版权声明
THE END
如果喜欢,可以【点赞】【分享】【收藏】
点赞7赞赏 分享
评论 抢沙发
头像
非注册用户需审核通过后才能查看。友好交流,勿发纯表情,勿恶意灌水!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容