Win11 右键菜单
更改右键菜单
1.批处理文件 restoreWin10ContextMenu.bat
右键点击该文件,选择"以管理员身份运行"
@echo off
:: Check if script is running with administrative privileges
net session >nul 2>&1
if %errorLevel% == 0 (
echo Administrative permissions confirmed. Proceeding...
) else (
echo Script requires administrative privileges. Please run as administrator.
REM exit /b
)
:: Add registry key
reg add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f
:: Kill explorer.exe
taskkill /F /IM explorer.exe
:: Restart explorer.exe
start explorer.exe
pause
如果要恢复 Win11 右键菜单,在注册表 CMD -> regedit 中,找到
计算机\HKEY_CURRENT_USER\Software\Classes\CLSID
删除其中的项 {86ca1aa0-34aa-4e8b-a509-50c905bae2a2}
设置右键打开 Cursor
新建 cursor.reg,并运行
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\Cursor]
@="Open with Cursor"
"Icon"="C:\\Users\\xxx\\AppData\\Local\\Programs\\cursor\\Cursor.exe"
[HKEY_CLASSES_ROOT\*\shell\Cursor\command]
@="\"C:\\Users\\xxx\\AppData\\Local\\Programs\\cursor\\Cursor.exe\" \"%1\""
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\Cursor]
@="Open with Cursor"
"Icon"="C:\\Users\\xxx\\AppData\\Local\\Programs\\cursor\\Cursor.exe"
[HKEY_CLASSES_ROOT\Directory\shell\Cursor\command]
@="\"C:\\Users\\xxx\\AppData\\Local\\Programs\\cursor\\Cursor.exe\" \"%V\""
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\Cursor]
@="Open with Cursor"
"Icon"="C:\\Users\\xxx\\AppData\\Local\\Programs\\cursor\\Cursor.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Cursor\command]
@="\"C:\\Users\\xxx\\AppData\\Local\\Programs\\cursor\\Cursor.exe\" \"%V\""
References
最后编辑于:2024 年 12 月 19 日 11:28