Switch Windows 11 Right Click Mode -BAT

@echo off
:start
cls
echo,
echo Switch Windows 11 Right Click Menu Mode
echo,
echo 1 Set to Windows 10 Right Click Menu Mode
echo,
echo 2 Recovery to Windows 11 Right Click Menu Mode
echo,
echo 0 Nothing to do and exit
echo,
echo,
choice /c:120 /n /m:"Please choose the operation (1/2/0):"
if %errorlevel%==0 exit
if %errorlevel%==2 goto cmd2
if %errorlevel%==1 goto cmd1
exit
:cmd1
reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve
taskkill /f /im explorer.exe
start explorer.exe
exit
:cmd2
reg.exe delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f
taskkill /f /im explorer.exe
start explorer.exe
exit

 

posted @ 2023-03-27 10:51  IT日志  阅读(13)  评论(0编辑  收藏  举报