当前位置: 美高梅棋牌 > 美高梅棋牌 > 正文

往鼠标右键菜单添加选项

时间:2019-12-15 14:43来源:美高梅棋牌
效果图: 打开注册表 win+R 输入 regedit 找到相   HKEY_CLASSES_ROOTDirectory 1.增加命令提示符 Windows Registry Editor Version 5.00[HKEY_CLASSES_ROOTDirectoryshellOpenCmdHere]@="在此处打开命令提示符""Icon"="cmd.

效果图:

  1. 打开注册表
    win+R 输入 regedit

  2. 找到相

图片 1

 

  HKEY_CLASSES_ROOTDirectory

1.增加命令提示符

图片 2

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOTDirectoryshellOpenCmdHere]
@="在此处打开命令提示符"
"Icon"="cmd.exe"

[HKEY_CLASSES_ROOTDirectoryshellOpenCmdHerecommand]
@="cmd.exe /s /k pushd "%V""

[HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenCmdHere]
@="在此处打开命令提示符"
"Icon"="cmd.exe"

[HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenCmdHerecommand]
@="cmd.exe /s /k pushd "%V""

[HKEY_CLASSES_ROOTDriveshellOpenCmdHere]
@="在此处打开命令提示符"
"Icon"="cmd.exe"

[HKEY_CLASSES_ROOTDriveshellOpenCmdHerecommand]
@="cmd.exe /s /k pushd "%V""

[HKEY_CLASSES_ROOTLibraryFolderbackgroundshellOpenCmdHere]
@="在此处打开命令提示符"
"Icon"="cmd.exe"

[HKEY_CLASSES_ROOTLibraryFolderbackgroundshellOpenCmdHerecommand]
@="cmd.exe /s /k pushd "%V""

image.png

  2.增加PowerShell

Backround 表示右键文件夹空白位置时弹出的菜单

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOTDirectoryshellOpenPsHere]
@="在此处打开PowerShell"
"Icon"="powershell.exe"

[HKEY_CLASSES_ROOTDirectoryshellOpenPsHerecommand]
@="powershell.exe -noexit -command Set-Location -literalPath '%V'"

[HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenPsHere]
@="在此处打开PowerShell"
"Icon"="powershell.exe"

[HKEY_CLASSES_ROOTDirectoryBackgroundshellOpenPsHerecommand]
@="powershell.exe -noexit -command Set-Location -literalPath '%V'"

[HKEY_CLASSES_ROOTDriveshellOpenPsHere]
@="在此处打开PowerShell"
"Icon"="powershell.exe"

[HKEY_CLASSES_ROOTDriveshellOpenPsHerecommand]
@="powershell.exe -noexit -command Set-Location -literalPath '%V'"

[HKEY_CLASSES_ROOTLibraryFolderbackgroundshellOpenPsHere]
@="在此处打开PowerShell"
"Icon"="powershell.exe"

[HKEY_CLASSES_ROOTLibraryFolderbackgroundshellOpenPsHerecommand]
@="powershell.exe -noexit -command Set-Location -literalPath '%V'"

shell 表示右键文件夹的时候弹出的菜单

  以上内容保存为缀名为OpenCmdHere.reg,双击OpenCmdHere.reg文件运行,弹出的提示点确认,修改注册表就大功告成了!

更具你的喜好,往相应的项里添加,比如添加一个用 Sublime text打开文件 的菜单项

编辑:美高梅棋牌 本文来源:往鼠标右键菜单添加选项

关键词:

  • 上一篇:没有了
  • 下一篇:没有了