Win11右键菜单和Win10相互切换回

创建/下载脚本

下载方法(推荐):Github

根据需求下载"右键菜单切换为Win10.bat"和"右键菜单切换为Win11.bat"即可

创建方法

  1. 右键创建"右键菜单切换为Win10.bat"
  2. 然后在内容中添加以下内容
@echo off


@echo start...

@rem 切换回Win10样式
reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve

@rem 重启文件管理器
@taskkill /f /im explorer.exe
start explorer.exe

@echo ----------
@echo   end 
@echo ----------

pause
  1. 右键创建"右键菜单切换为Win11.bat"文件"
  2. 然后输入以下内容
@echo off

@echo start...

@rem 切换回默认样式
reg.exe delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /va /f

@rem 重启文件管理器
@taskkill /f /im explorer.exe
start explorer.exe

@echo ----------
@echo   end 
@echo ----------

pause

使用方法

  1. 双击"右键菜单切换为Win10.bat"/"右键菜单切换为Win11.bat"文件即可

  2. 如果有警告弹出,点击’是’即可

  3. 切换成功后,会自动重启文件管理器

    "右键菜单切换为Win11.bat"效果如图所示

    Win11右键菜单和Win10相互切换回_第1张图片

    "右键菜单切换为Win10.bat"效果如图所示

    Win11右键菜单和Win10相互切换回_第2张图片

所需运行环境

注意

  1. Windows 11 系统才需使用
  2. 所有打开的文件夹会被关闭
  3. 会清空剪切板中的内容

你可能感兴趣的:(batch,batch命令,windows)