windows 设置右键菜单
在文件 右键菜单中添加
xx.reg:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\shell\vscode]
"Icon"="D:\\tools\\MicrosoftVSCode\\Code.exe"
@="Edit with VsCode"
[HKEY_CLASSES_ROOT\*\shell\vscode\command]
@="\"D:\\tools\\MicrosoftVSCode\\Code.exe\" \"%1\""
在桌面 右键菜单中添加
xx.reg:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode]
@="Open VsCode"
"Icon"="\"D:\\tools\\MicrosoftVSCode\\Code.exe\""
[HKEY_CLASSES_ROOT\Directory\Background\shell\vscode\command]
@="D:\\tools\\MicrosoftVSCode\\Code.exe"
在目录 右键菜单中添加
xx.reg:
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\vscode]
@="Open with VsCode"
"Icon"="\"D:\\tools\\MicrosoftVSCode\\Code.exe\""
[HKEY_CLASSES_ROOT\Directory\shell\vscode\command]
@="D:\\tools\\MicrosoftVSCode\\Code.exe %1"
只在.txt的菜单中创建
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\SystemFileAssociations\.txt\shell\Hello TXT]
[HKEY_CLASSES_ROOT\SystemFileAssociations\.txt\shell\Hello TXT\command]
二级菜单
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\Open]
@=""
"Position"="Middle"
"SubCommands"=""
[HKEY_CLASSES_ROOT\Directory\Background\shell\Open\shell]
[HKEY_CLASSES_ROOT\Directory\Background\shell\Open\shell\CE]
[HKEY_CLASSES_ROOT\Directory\Background\shell\Open\shell\CE\command]
@="C:\\CE\\Cheat Engine.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Open\shell\Chrome]
[HKEY_CLASSES_ROOT\Directory\Background\shell\Open\shell\Chrome\command]
@="C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Open\shell\Edge]
[HKEY_CLASSES_ROOT\Directory\Background\shell\Open\shell\Edge\command]
@="C:\\Program Files (x86)\\Microsoft\\Edge\\Application\\msedge.exe"
[HKEY_CLASSES_ROOT\Directory\Background\shell\Open\shell\VS 2019]
[HKEY_CLASSES_ROOT\Directory\Background\shell\Open\shell\VS 2019\command]
@="D:\\my-tools\\MicrosoftVisualStudio\\IDE\\Common7\\IDE\\devenv.exe"
将cmder添加到目录命令
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\Cmder]
"Extended"=""
"NoWorkingDirectory"=""
"ShowBasedOnVelocityId"=dword:00639bc8
[HKEY_CLASSES_ROOT\Directory\shell\Cmder\command]
@="cmder.exe"
rmrf.reg
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\shell\rmrf]
@="rm -rf"
"Position"="Bottom"
[HKEY_CLASSES_ROOT\Directory\shell\rmrf\command]
@="cmd /C \"del /q \"%1\" && rd /s /q \"%1\"\""
[HKEY_CLASSES_ROOT\*\shell\rmrf]
@="rm -rf"
"Position"="Bottom"
[HKEY_CLASSES_ROOT\*\shell\rmrf\command]
@="cmd /C \"del /q \"%1\" && rd /s /q \"%1\"\""