把以下代碼貼入記事本,然后另存為“xxx.bat”。
警告:一旦運行,Win10 默認會注銷,然后重新登陸,輸入密碼。這時候你之前打開的所有應用程序(APP)會退出,比如:Chrome 瀏覽器、Visual Studio 2022、記事本等等。
@echo off color 1f :start cls echo, echo 修改右鍵菜單模式 echo, echo 1 Windows 10 傳統模式 echo, echo 2 Windows 11 默認模式 echo, echo, echo, echo 0 放棄修改,退出 echo, echo, choice /c:120 /n /m:"請選擇要使用的模式" 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 shutdown -l exit :cmd2 reg.exe delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f shutdown -l exit
謝謝瀏覽!