当前位置: 移动技术网 > 科技>操作系统>windows > 右键菜单怎样添加“在此处打开命令提示符”选项

右键菜单怎样添加“在此处打开命令提示符”选项

2018年05月12日  | 移动技术网科技  | 我要评论

提防老千国语,华夏第一村,初雪 徐良

效果图:

 

1.增加命令提示符

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere]
@="在此处打开命令提示符"
"Icon"="cmd.exe"

[HKEY_CLASSES_ROOT\Directory\shell\OpenCmdHere\command]
@="cmd.exe /s /k pushd "%V""

[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere]
@="在此处打开命令提示符"
"Icon"="cmd.exe"

[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenCmdHere\command]
@="cmd.exe /s /k pushd "%V""

[HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHere]
@="在此处打开命令提示符"
"Icon"="cmd.exe"

[HKEY_CLASSES_ROOT\Drive\shell\OpenCmdHere\command]
@="cmd.exe /s /k pushd "%V""

[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHere]
@="在此处打开命令提示符"
"Icon"="cmd.exe"

[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenCmdHere\command]
@="cmd.exe /s /k pushd "%V""

  2.增加PowerShell

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\OpenPsHere]
@="在此处打开PowerShell"
"Icon"="powershell.exe"

[HKEY_CLASSES_ROOT\Directory\shell\OpenPsHere\command]
@="powershell.exe -noexit -command Set-Location -literalPath '%V'"

[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenPsHere]
@="在此处打开PowerShell"
"Icon"="powershell.exe"

[HKEY_CLASSES_ROOT\Directory\Background\shell\OpenPsHere\command]
@="powershell.exe -noexit -command Set-Location -literalPath '%V'"

[HKEY_CLASSES_ROOT\Drive\shell\OpenPsHere]
@="在此处打开PowerShell"
"Icon"="powershell.exe"

[HKEY_CLASSES_ROOT\Drive\shell\OpenPsHere\command]
@="powershell.exe -noexit -command Set-Location -literalPath '%V'"

[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenPsHere]
@="在此处打开PowerShell"
"Icon"="powershell.exe"

[HKEY_CLASSES_ROOT\LibraryFolder\background\shell\OpenPsHere\command]
@="powershell.exe -noexit -command Set-Location -literalPath '%V'"

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

   下载链接:https://files.cnblogs.com/files/dyj057/opencmdhere.zip

如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复

相关文章:

验证码:
移动技术网