我正在Windows 10中寻找一种快捷方式,以通过Windows资源管理器中的目录/文件夹打开cmd.exe,以便在命令提示符下将这个特定的文件夹作为实际的工作目录。
我知道按住Shift并右键单击资源管理器中的相对文件夹的技巧,在该文件夹中,您会获得一个额外的菜单选项,可在cmd.exe中打开它,如此处所述:
如何从Windows 7中的文件夹中的文件浏览器快速打开终端?
但是遗憾的是,该功能在Windows 10中不起作用,仅适用于Windows 7和Windows8。在Windows 10中,您只能选择在PowerShell中打开它,而不能在命令提示符/ cmd.exe中打开它。
它确实适用于Windows10。已经有很多重复的问题:
基本上,只需取得HKEY_CLASSES_ROOT\Directory\shell\cmd
密钥的所有权,然后将DWORD重命名为HideBasedOnVelocityId
即可ShowBasedOnVelocityId
。有关更多详细信息,请阅读
您也可以在Windows 10中获得菜单项“此处命令提示符”而无需使用Shift键,或者在Windows中将菜单项添加到SHIFT +右键单击菜单中
另外,也可以使用安德鲁·理查兹(Andrew Richards)的“在此处增强“打开命令提示符””上下文菜单进行调整,并可以选择以正常和提升权限运行cmd / powershell / bash ...
只需导入下面的* .reg文件(或从上面的MSDN博客复制)
Windows Registry Editor Version 5.00
; Command Prompt
[HKEY_CLASSES_ROOT\Directory\shell\01MenuCmd]
"MUIVerb"="Command Prompts"
"Icon"="cmd.exe"
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuCmd"
[HKEY_CLASSES_ROOT\Directory\background\shell\01MenuCmd]
"MUIVerb"="Command Prompts"
"Icon"="cmd.exe"
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuCmd"
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\open]
"MUIVerb"="Command Prompt"
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\open\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\runas]
"MUIVerb"="Command Prompt Elevated"
"Icon"="cmd.exe"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuCmd\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
; PowerShell
[HKEY_CLASSES_ROOT\Directory\shell\02MenuPowerShell]
"MUIVerb"="PowerShell Prompts"
"Icon"="powershell.exe"
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuPowerShell"
[HKEY_CLASSES_ROOT\Directory\background\shell\02MenuPowerShell]
"MUIVerb"="PowerShell Prompts"
"Icon"="powershell.exe"
"ExtendedSubCommandsKey"="Directory\\ContextMenus\\MenuPowerShell"
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\open]
"MUIVerb"="PowerShell"
"Icon"="powershell.exe"
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\open\command]
@="powershell.exe -noexit -command Set-Location '%V'"
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\runas]
"MUIVerb"="PowerShell Elevated"
"Icon"="powershell.exe"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\ContextMenus\MenuPowerShell\shell\runas\command]
@="powershell.exe -noexit -command Set-Location '%V'"
; Ensure OS Entries are on the Extended Menu (Shift-Right Click)
[HKEY_CLASSES_ROOT\Directory\shell\cmd]
"Extended"=""
[HKEY_CLASSES_ROOT\Directory\background\shell\cmd]
"Extended"=""
[HKEY_CLASSES_ROOT\Directory\shell\Powershell]
"Extended"=""
[HKEY_CLASSES_ROOT\Directory\background\shell\Powershell]
"Extended"=""
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句