使用方法
1.新建一个文本文件,把下面内容粘贴进去。
2.保存为 .bat 文件(例如 Win11右键菜单切换.bat)。
3.双击运行并按菜单选择即可。
注意:如果公司策略限制注册表修改,可能需要用管理员身份运行。
bat内容
@echo off
chcp 65001 >nul
title Win11 右键菜单切换工具
color 0A
:menu
cls
echo ==========================================
echo Win11 右键菜单切换
echo ==========================================
echo.
echo 1. 切换为经典右键菜单(类似 Win7/Win10)
echo 2. 恢复 Win11 新版右键菜单
echo 3. 退出
echo.
set /p choice=请输入选项(1/2/3):
if "%choice%"=="1" goto enable_old
if "%choice%"=="2" goto restore_new
if "%choice%"=="3" goto end
goto menu
:enable_old
echo.
echo 正在启用经典右键菜单...
reg add "HKCU\Software\Classes\CLSID\{86CA1AA0-34AA-4E8B-A509-50C905BAE2A2}\InprocServer32" /f /ve >nul
echo 已写入注册表,正在重启资源管理器...
taskkill /f /im explorer.exe >nul 2>nul
start explorer.exe
echo 完成:已切换为经典右键菜单。
pause
goto end
:restore_new
echo.
echo 正在恢复 Win11 新版右键菜单...
reg delete "HKCU\Software\Classes\CLSID\{86CA1AA0-34AA-4E8B-A509-50C905BAE2A2}" /f >nul 2>nul
echo 已修改注册表,正在重启资源管理器...
taskkill /f /im explorer.exe >nul 2>nul
start explorer.exe
echo 完成:已恢复 Win11 新版右键菜单。
pause
goto end
:end
exit