Skip to content

Instantly share code, notes, and snippets.

@imbyc
Last active February 16, 2022 06:38
Show Gist options
  • Save imbyc/00278c4fe516b78861e9f769a93ed4a8 to your computer and use it in GitHub Desktop.
Save imbyc/00278c4fe516b78861e9f769a93ed4a8 to your computer and use it in GitHub Desktop.
[Windows 11 Classic Context Menu] 还原windows11旧的邮件菜单 #windows11 #win11 #win11邮件菜单 #Windows11ClassicContextMenu

Windows 11 Classic Context Menu.bat 下载双击执行

image

@echo off
title windows 11 还原经典菜单(windows 11 Classic Context Menu)
mode con cols=80 lines=20
::https://www.sordum.org/14479/windows-11-classic-context-menu-v1-1/
:MENU
echo -------------------------------------------
echo 1.还原win10老菜单(Restore Classic Context Menu) & echo.
echo 2.还原win11默认菜单(Restore Default Context Menu) & echo.
echo 3.重启资源管理器(Restart explorer.exe) & echo.
echo 4.退出(exit) & echo.
echo Author: byc Date: 2022-02-16 & echo.
echo -------------------------------------------
set "select="
set /p select= 输入数字,按回车继续(Type 1, 2, 3, or 4 then press ENTER) :
if "%select%"=="1" (goto CLASSIC)
if "%select%"=="2" (goto DEFAULT)
if "%select%"=="3" (goto RESTARTEXPLORER)
if "%select%"=="4" (goto EXIT)
cls & goto MENU
:CLASSIC
reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f
goto restartExplorer
:DEFAULT
reg.exe delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f
:RESTARTEXPLORER
echo 将重启资源管理器已使设置生效,按任意键重启(enter any key to restart explorer.exe let set worked)& pause>nul
taskkill /f /im explorer.exe & start explorer.exe
:EXIT
echo 按任意键退出 & pause > nul & exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment