win10 增加桌面右击菜单
时间: 2023-09-27 14:08:29 浏览: 143
可以按照以下步骤增加桌面右键菜单:
1. 在桌面上新建一个文本文档,然后将其重命名为“添加到右键菜单.reg”,注意后缀名必须为.reg。
2. 双击打开“添加到右键菜单.reg”,然后点击“是”确认添加,再点击“确定”完成添加。
3. 然后你就可以在桌面上右键点击任意文件或文件夹,就会看到新添加的菜单项。
下面是“添加到右键菜单.reg”的代码:
```
Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\Directory\Background\shell\cmd]
@="在此处打开命令窗口"
[HKEY_CLASSES_ROOT\Directory\Background\shell\cmd\command]
@="cmd.exe /K cd %v"
[HKEY_CLASSES_ROOT\Directory\Background\shell\powershell]
@="在此处打开 PowerShell 窗口"
[HKEY_CLASSES_ROOT\Directory\Background\shell\powershell\command]
@="powershell.exe -noexit -command Set-Location -LiteralPath '%V'"
[HKEY_CLASSES_ROOT\Directory\Background\shell\git-bash]
@="在此处打开 Git Bash 窗口"
[HKEY_CLASSES_ROOT\Directory\Background\shell\git-bash\command]
@="\"C:\\Program Files\\Git\\bin\\bash.exe\" --login -i -c 'cd \"$(cygpath '%V')\" ; exec bash'"
[HKEY_CLASSES_ROOT\Drive\shell\cmd]
@="在此处打开命令窗口"
[HKEY_CLASSES_ROOT\Drive\shell\cmd\command]
@="cmd.exe /K cd %v"
[HKEY_CLASSES_ROOT\Drive\shell\powershell]
@="在此处打开 PowerShell 窗口"
[HKEY_CLASSES_ROOT\Drive\shell\powershell\command]
@="powershell.exe -noexit -command Set-Location -LiteralPath '%V'"
[HKEY_CLASSES_ROOT\Drive\shell\git-bash]
@="在此处打开 Git Bash 窗口"
[HKEY_CLASSES_ROOT\Drive\shell\git-bash\command]
@="\"C:\\Program Files\\Git\\bin\\bash.exe\" --login -i -c 'cd \"$(cygpath '%V')\" ; exec bash'"
```
代码中包含了打开命令窗口、PowerShell 窗口和 Git Bash 窗口三个菜单项,你也可以根据自己的需求进行修改。注意修改后需要保存并双击打开修改后的.reg文件,才能使修改生效。
阅读全文
相关推荐

















