在文件 右键菜单中添加
xx.reg:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT*shellvscode]
"Icon"="D:\tools\MicrosoftVSCode\Code.exe"
@="Edit with VsCode"
[HKEY_CLASSES_ROOT*shellvscodecommand]
@=""D:\tools\MicrosoftVSCode\Code.exe" "%1""
在桌面 右键菜单中添加
xx.reg:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTDirectoryBackgroundshellvscode]
@="Open VsCode"
"Icon"=""D:\tools\MicrosoftVSCode\Code.exe""
[HKEY_CLASSES_ROOTDirectoryBackgroundshellvscodecommand]
@="D:\tools\MicrosoftVSCode\Code.exe"
在目录 右键菜单中添加
xx.reg:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTDirectoryshellvscode]
@="Open with VsCode"
"Icon"=""D:\tools\MicrosoftVSCode\Code.exe""
[HKEY_CLASSES_ROOTDirectoryshellvscodecommand]
@="D:\tools\MicrosoftVSCode\Code.exe %1"
只在.txt的菜单中创建
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTSystemFileAssociations.txtshellHello TXT]
[HKEY_CLASSES_ROOTSystemFileAssociations.txtshellHello TXTcommand]
二级菜单
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTDirectoryBackgroundshellOpen]
@=""
"Position"="Middle"
"SubCommands"=""
[HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenshell]
[HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenshellCE]
[HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenshellCEcommand]
@="C:\CE\Cheat Engine.exe"
[HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenshellChrome]
[HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenshellChromecommand]
@="C:\Program Files (x86)\Google\Chrome\Application\chrome.exe"
[HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenshellEdge]
[HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenshellEdgecommand]
@="C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe"
[HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenshellVS 2019]
[HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenshellVS 2019command]
@="D:\my-tools\MicrosoftVisualStudio\IDE\Common7\IDE\devenv.exe"
将cmder添加到目录命令
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTDirectoryshellCmder]
"Extended"=""
"NoWorkingDirectory"=""
"ShowBasedOnVelocityId"=dword:00639bc8
[HKEY_CLASSES_ROOTDirectoryshellCmdercommand]
@="cmder.exe"
rmrf.reg
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOTDirectoryshell
mrf]
@="rm -rf"
"Position"="Bottom"
[HKEY_CLASSES_ROOTDirectoryshell
mrfcommand]
@="cmd /C "del /q "%1" && rd /s /q "%1"""
[HKEY_CLASSES_ROOT*shell
mrf]
@="rm -rf"
"Position"="Bottom"
[HKEY_CLASSES_ROOT*shell
mrfcommand]
@="cmd /C "del /q "%1" && rd /s /q "%1"""