
Windows实用脚本分享:一键优化你的系统
前言
最近整理了一些系统优化脚本,都是平时自用的优化脚本,有.bat .reg等格式的,大家用的时候要仔细看脚本的格式再使用
.Reg脚本
.reg 文件实际上是一种 windows 操作系统的 注册表脚本 文件,双击 .reg 文件即可将其中的数据导入到注册表当中。利用 .reg 文件我们可以直接对注册表进行任何修改操作,它对注册表的操作可以不受注册表编辑器被禁用的限制,因此功能更为强大、灵活。
常用软件的鼠标右键菜单去除.reg
顾名思义,这个脚本可以删除一部分软件的鼠标右键菜单,避免系统的右键菜单过长,让它保持简约。
Windows Registry Editor Version 5.00
# 删除夸克网盘
[-HKEY_CLASSES_ROOT\Folder\ShellEx\-ContextMenuHandlers\ QuarkCloudDrive.ContextMenuExt]
[-HKEY_CLASSES_ROOT\*\shell\QuarkCloudDrive.imSendSelf]
[-HKEY_CLASSES_ROOT\*\shell\QuarkCloudDrive.upload]
[-HKEY_CLASSES_ROOT\*\ShellEx\-ContextMenuHandlers\ QuarkCloudDrive.ContextMenuExt]
[-HKEY_CLASSES_ROOT\*\ShellEx\-ContextMenuHandlers\QingNseContextMenu]
[-HKEY_CLASSES_ROOT\Folder\ShellEx\ContextMenuHandlers\ QuarkCloudDrive.ContextMenuExt]
[-HKEY_CLASSES_ROOT\Directory\shell\QuarkCloudDrive.imSendSelf]
[-HKEY_CLASSES_ROOT\Directory\shell\QuarkCloudDrive.upload]
[-HKEY_CLASSES_ROOT\Directory\ShellEx\ContextMenuHandlers\ QuarkCloudDrive.ContextMenuExt]
[-HKEY_CLASSES_ROOT\*\ShellEx\ContextMenuHandlers\ QuarkCloudDrive.ContextMenuExt]
[-HKEY_CLASSES_ROOT\Directory\ShellEx\-ContextMenuHandlers\ QuarkCloudDrive.ContextMenuExt]
# 删除迅雷网盘
[-HKEY_CLASSES_ROOT\*\shell\UploadToThunderPan]
# 删除百度网盘
[-HKEY_CLASSES_ROOT\*\shell\YunShellExplorerCommand]
[-HKEY_CLASSES_ROOT\*\ShellEx\ContextMenuHandlers\YunShellExt]
[-HKEY_CLASSES_ROOT\Directory\ShellEx\ContextMenuHandlers\YunShellExt]
[-HKEY_CLASSES_ROOT\Directory\ShellEx\ContextMenuHandlers\YunShellExt]
# 删除WPS
[-HKEY_CLASSES_ROOT\*\ShellEx\ContextMenuHandlers\Open With kwpsshellext]
[-HKEY_CLASSES_ROOT\*\ShellEx\ContextMenuHandlers\Open With qingshellext]
[-HKEY_CLASSES_ROOT\Directory\ShellEx\ContextMenuHandlers\Open With qingshellext]
[-HKEY_CLASSES_ROOT\Directory\ShellEx\ContextMenuHandlers\QingNseContextMenu]
[-HKEY_CLASSES_ROOT\Directory\ShellEx\ContextMenuHandlers\qkdesktopshellext]
[-HKEY_CLASSES_ROOT\Directory\ShellEx\ContextMenuHandlers\Open With kwpsshellext]
[-HKEY_CLASSES_ROOT\Directory\ShellEx\ContextMenuHandlers\Open With qingshellext]
[-HKEY_CLASSES_ROOT\Directory\ShellEx\ContextMenuHandlers\qkdesktopshellext]
[-HKEY_CLASSES_ROOT\Directory\ShellEx\ContextMenuHandlers\Open With kwpsshellext]
[-HKEY_CLASSES_ROOT\*\ShellEx\-ContextMenuHandlers\Open With kwpsshellext]
[-HKEY_CLASSES_ROOT\Directory\Background\ShellEx\ContextMenuHandlers\Open With qingshellext]
[-HKEY_CLASSES_ROOT\Directory\Background\ShellEx\ContextMenuHandlers\Open With kwpsshellext]
[-HKEY_CLASSES_ROOT\DesktopBackground\ShellEx\ContextMenuHandlers\kdesktopshellext]
[-HKEY_CLASSES_ROOT\Drive\ShellEx\ContextMenuHandlers\Open With kwpsshellext]
[-HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\ShellEx\ContextMenuHandlers\Open With kwpsshellext]
[-HKEY_CLASSES_ROOT\DesktopBackground\ShellEx\-ContextMenuHandlers\kdesktopshellext]
[-HKEY_CLASSES_ROOT\Drive\ShellEx\-ContextMenuHandlers\Open With kwpsshellext]
[-HKEY_CLASSES_ROOT\Directory\Background\ShellEx\-ContextMenuHandlers\Open With kwpsshellext]
[-HKEY_CLASSES_ROOT\Directory\Background\ShellEx\-ContextMenuHandlers\Open With qingshellext]
# 删除OneDrive
[-HKEY_CLASSES_ROOT\*\ShellEx\ContextMenuHandlers\ FileSyncEx]
[-HKEY_CLASSES_ROOT\Directory\ShellEx\ContextMenuHandlers\ FileSyncEx]
[-HKEY_CLASSES_ROOT\Directory\Background\ShellEx\ContextMenuHandlers\ FileSyncEx]
# 删除Microsoft Defender
[-HKEY_CLASSES_ROOT\*\ShellEx\ContextMenuHandlers\EPP]
# 删除QQ音乐
[-HKEY_CLASSES_ROOT\Directory\shell\QQMusic.1.Play]
[-HKEY_CLASSES_ROOT\Directory\shell\QQMusic.2.Add]
# 删除网易云音乐菜单
[-HKEY_CLASSES_ROOT\*\ShellEx\-ContextMenuHandlers\cloudmusic]
# 删除英伟达菜单
[-HKEY_CLASSES_ROOT\Directory\Background\ShellEx\ContextMenuHandlers\NvCplDesktopContext]
[-HKEY_CLASSES_ROOT\Directory\Background\ShellEx\-ContextMenuHandlers\NvCplDesktopContext]
# 删除火绒扫描菜单
[-HKEY_CLASSES_ROOT\*\ShellEx\ContextMenuHandlers\HRShell]
[-HKEY_CLASSES_ROOT\Directory\ShellEx\ContextMenuHandlers\HRShell]
[-HKEY_CLASSES_ROOT\AllFilesystemObjects\ShellEx\ContextMenuHandlers\HRShell]
# 删除adobe dc菜单
[-HKEY_CLASSES_ROOT\*\ShellEx\-ContextMenuHandlers\Adobe.Acrobat.ContextMenu]
[-HKEY_CLASSES_ROOT\Folder\ShellEx\-ContextMenuHandlers\Adobe.Acrobat.ContextMenu]
# 删除TeraCopy Shell Extension菜单
[-HKEY_CLASSES_ROOT\*\ShellEx\-ContextMenuHandlers\TeraCopy]
[-HKEY_CLASSES_ROOT\Folder\ShellEx\-ContextMenuHandlers\TeraCopy]
[-HKEY_CLASSES_ROOT\Directory\ShellEx\-ContextMenuHandlers\TeraCopy]
# 删除Git菜单
[-HKEY_CLASSES_ROOT\Directory\shell\git_gui]
[-HKEY_CLASSES_ROOT\Directory\shell\git_gui\command]
[-HKEY_CLASSES_ROOT\Directory\shell\git_shell]
[-HKEY_CLASSES_ROOT\Directory\shell\git_shell\command]
[-HKEY_CLASSES_ROOT\Directory\Background\shell\git_gui]
[-HKEY_CLASSES_ROOT\Directory\Background\shell\git_gui\command]
[-HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\git_shell\command]
[-HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\git_shell]
[-HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\git_gui]
[-HKEY_CLASSES_ROOT\LibraryFolder\Background\shell\git_gui\command]
自定义功能.reg
这个脚本给鼠标右键菜单添加了一栏“自定义功能”项,这里可以指定右键选中的文件用哪个软件打开,例如用vscode打开等,让开发更为高效。
Windows Registry Editor Version 5.00
# 目录背景的菜单
[HKEY_CLASSES_ROOT\Directory\Background\shell\menuEnhance]
"MUIVerb"="自定义功能"
"SubCommands"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\menuEnhance\shell]
[HKEY_CLASSES_ROOT\Directory\Background\shell\menuEnhance\shell\Item0]
"MUIVerb"="用 VS Code 打开"
[HKEY_CLASSES_ROOT\Directory\Background\shell\menuEnhance\shell\Item0\command]
@="C:\\Users\\\\huib6\\AppData\\Local\\Programs\\Microsoft VS Code\\code.exe \"%V\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\menuEnhance\shell\Item1]
"MUIVerb"="此处打开命令窗口"
[HKEY_CLASSES_ROOT\Directory\Background\shell\menuEnhance\shell\Item1\command]
@="cmd.exe pushd \"%W\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\menuEnhance\shell\Item2]
"MUIVerb"="此处打开 powershell 窗口"
[HKEY_CLASSES_ROOT\Directory\Background\shell\menuEnhance\shell\Item2\command]
@="powershell.exe -noexit -command Set-Location -literalPath '%V'"
[HKEY_CLASSES_ROOT\Directory\Background\shell\menuEnhance\shell\Item3]
"MUIVerb"="复制当前路径"
[HKEY_CLASSES_ROOT\Directory\Background\shell\menuEnhance\shell\Item3\command]
@="mshta vbscript:clipboarddata.setdata(\"text\",\"%V\")(close)"
[HKEY_CLASSES_ROOT\Directory\Background\shell\menuEnhance\shell\Item4]
"MUIVerb"="管理员获取所有权"
[HKEY_CLASSES_ROOT\Directory\Background\shell\menuEnhance\shell\Item4\command]
@="mshta vbscript:createobject(\"shell.application\").shellexecute(\"takeown.exe\",\"/f \"\"%1\"\" /a\",\"\",\"runas\",0)(close)"
[HKEY_CLASSES_ROOT\Directory\Background\shell\menuEnhance\shell\Item5]
"MUIVerb"="鼠标右键菜单管理"
[HKEY_CLASSES_ROOT\Directory\Background\shell\menuEnhance\shell\Item5\command]
@="F:\\e\\C 开发工具\\系统优化\\右键管理工具\\ContextMenuManager.NET.4.0.exe"
# 所有对象的菜单
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\menuEnhance]
"MUIVerb"="自定义功能"
"SubCommands"=""
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\menuEnhance\shell]
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\menuEnhance\shell\Item0]
"MUIVerb"="用 VS Code 打开"
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\menuEnhance\shell\Item0\command]
@="C:\\Users\\\\huib6\\AppData\\Local\\Programs\\Microsoft VS Code\\code.exe \"%V\""
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\menuEnhance\shell\Item1]
"MUIVerb"="此处打开命令窗口"
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\menuEnhance\shell\Item1\command]
@="cmd.exe pushd \"%V\""
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\menuEnhance\shell\Item2]
"MUIVerb"="此处打开 powershell 窗口"
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\menuEnhance\shell\Item2\command]
@="powershell.exe -noexit -command Set-Location -literalPath '%V'"
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\menuEnhance\shell\Item3]
"MUIVerb"="复制当前路径"
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\menuEnhance\shell\Item3\command]
@="mshta vbscript:clipboarddata.setdata(\"text\",\"%V\")(close)"
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\menuEnhance\shell\Item4]
"MUIVerb"="管理员获取所有权"
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\menuEnhance\shell\Item4\command]
@="mshta vbscript:createobject(\"shell.application\").shellexecute(\"takeown.exe\",\"/f \"\"%1\"\" /a\",\"\",\"runas\",0)(close)"
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\menuEnhance\shell\Item5]
"MUIVerb"="鼠标右键菜单管理"
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\menuEnhance\shell\Item5\command]
@="F:\\e\\C 开发工具\\系统优化\\右键管理工具\\ContextMenuManager.NET.4.0.exe"
- 感谢你赐予我前进的力量
赞赏者名单
因为你们的支持让我意识到写文章的价值🙏
本文是原创文章,采用 CC BY-NC-ND 4.0 协议,完整转载请注明来自 NUILLI
评论
匿名评论
隐私政策
你无需删除空行,直接评论以获取最佳展示效果