新建菜单
右键没有“新建”
Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\New]@="{D969A300-E7FF-11d0-A93B-00A0C90F2719}"
右键新建排序
Windows Registry Editor Version 5.00[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Discardable\PostSetup\ShellNew]"Classes"=hex(7):2e,00,6c,00,6e,00,6b,00,00,00,46,00,6f,00,6c,00,64,00,65,00,\72,00,00,00,2e,00,74,00,78,00,74,00,00,00,2e,00,72,00,74,00,66,00,00,00,2e,\00,64,00,6f,00,63,00,78,00,00,00,2e,00,78,00,6c,00,73,00,78,00,00,00,2e,00,\70,00,70,00,74,00,78,00,00,00,2e,00,61,00,63,00,63,00,64,00,62,00,00,00,2e,\00,6d,00,64,00,62,00,00,00,2e,00,70,00,75,00,62,00,00,00,2e,00,7a,00,69,00,\70,00,00,00,2e,00,72,00,61,00,72,00,00,00,2e,00,37,00,7a,00,00,00,2e,00,62,\00,6d,00,70,00,00,00,2e,00,63,00,6f,00,6e,00,74,00,61,00,63,00,74,00,00,00,\2e,00,6c,00,69,00,62,00,72,00,61,00,72,00,79,00,2d,00,6d,00,73,00,00,00,00,\00"~reserved~"=hex:08,00,00,00,00,00,06,00
排序顺序:
.lnkFolder.txt.rtf.docx.xlsx.pptx.accdb.mdb.pub.zip.rar.7z.bmp.contact.library-ms
Classes默认是不能修改的,需要修改其权限,而其权限是继承父类的,所以在修改权限是,首先要修改不被继承的,修改方式如下:
- 第一:右键ShellNew,选择权限,选择高级,取消权限“包括可从该对象的父项继承的权限”,保存;
- 第二:对使用的账户的权限设置为读取,取消完全控制(完全控制包括读取、修改、删除,如果允许完全控制,系统会自动更改修改好的Classes值),保存即可。
- 第三:在桌面右键选择新建时候,顺序已改变即修改成功。
参考:修改右键 新建菜单顺序
新建文本文件
Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\.txt]@="txtfile""Content Type"="text/plain"[HKEY_CLASSES_ROOT\.txt\ShellNew]"NullFile"=""[HKEY_CLASSES_ROOT\txtfile]@="文本文档"[HKEY_CLASSES_ROOT\txtfile\shell][HKEY_CLASSES_ROOT\txtfile\shell\open][HKEY_CLASSES_ROOT\txtfile\shell\open\command]@="NOTEPAD.EXE %1"
打开方式
右键没有“打开方式”
Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\*\shell\OpenWith]@="打开方式"[HKEY_CLASSES_ROOT\*\shell\OpenWith\Command]@="C:\\Windows\\rundll32.exe Shell32.dll,OpenAs_RunDLL %1\""
文件夹背景
路径:HKEY_CLASSES_ROOT\Directory\Background\shell
CMD
Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\Directory\Background\shell\cmd]@="@shell32.dll,-8506""Extended"="""HideBasedOnVelocityId"=dword:00639bc8"NoWorkingDirectory"=""[HKEY_CLASSES_ROOT\Directory\Background\shell\cmd\command]@="cmd.exe /s /k pushd \"%V\""
Powershell
Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\Directory\Background\shell\Powershell]@="@shell32.dll,-8508""Extended"="""NoWorkingDirectory"="""ShowBasedOnVelocityId"=dword:00639bc8[HKEY_CLASSES_ROOT\Directory\Background\shell\Powershell\command]@="powershell.exe -noexit -command Set-Location -literalPath '%V'"
Git Bash
Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\Directory\Background\shell\git_shell]@="Git Ba&sh Here""Icon"="C:\\Program Files\\Git\\git-bash.exe"[HKEY_CLASSES_ROOT\Directory\Background\shell\git_shell\command]@="\"C:\\Program Files\\Git\\git-bash.exe\" \"--cd=%v.\""
Terminus
Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\Directory\Background\shell\Open Terminus here]"Icon"="C:\\Users\\quanzaiyu\\AppData\\Local\\terminus\\app-1.0.77\\Terminus.exe"[HKEY_CLASSES_ROOT\Directory\Background\shell\Open Terminus here\command]@="C:\\Users\\quanzaiyu\\AppData\\Local\\terminus\\app-1.0.77\\Terminus.exe open \"%V\""
VSCode
Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode]@=hex(2):1a,90,c7,8f,20,00,43,00,6f,00,64,00,65,00,20,00,53,62,00,5f,00,00"Icon"=hex(2):43,00,3a,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,71,00,75,\00,61,00,6e,00,7a,00,61,00,69,00,79,00,75,00,5c,00,41,00,70,00,70,00,44,00,\61,00,74,00,61,00,5c,00,4c,00,6f,00,63,00,61,00,6c,00,5c,00,50,00,72,00,6f,\00,67,00,72,00,61,00,6d,00,73,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,\6f,00,66,00,74,00,20,00,56,00,53,00,20,00,43,00,6f,00,64,00,65,00,5c,00,43,\00,6f,00,64,00,65,00,2e,00,65,00,78,00,65,00,00,00[HKEY_CLASSES_ROOT\Directory\Background\shell\VSCode\command]@=hex(2):22,00,43,00,3a,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,71,00,75,\00,61,00,6e,00,7a,00,61,00,69,00,79,00,75,00,5c,00,41,00,70,00,70,00,44,00,\61,00,74,00,61,00,5c,00,4c,00,6f,00,63,00,61,00,6c,00,5c,00,50,00,72,00,6f,\00,67,00,72,00,61,00,6d,00,73,00,5c,00,4d,00,69,00,63,00,72,00,6f,00,73,00,\6f,00,66,00,74,00,20,00,56,00,53,00,20,00,43,00,6f,00,64,00,65,00,5c,00,43,\00,6f,00,64,00,65,00,2e,00,65,00,78,00,65,00,22,00,20,00,22,00,25,00,56,00,\22,00,00,00
WSL
Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\Directory\Background\shell\WSL]@="@wsl.exe,-2""Extended"="""NoWorkingDirectory"=""[HKEY_CLASSES_ROOT\Directory\Background\shell\WSL\command]@="wsl.exe --cd \"%V\""
Windows Terminal
msi 右键添加 “以管理员运行”
Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOT\Msi.Package\shell\runas]@="以管理员身份运行"[HKEY_CLASSES_ROOT\Msi.Package\shell\runas\command]@="msiexec /i \"%1\""
浏览器右键扩展
地址: HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt
