我又遭遇了微软的又一次欺骗手段。
这一次,该选项Open command window here
已从上下文菜单中消失(在文件夹内时通过 Shift + 右键单击显示)。
相反,我现在有Open PowerShell window here
。
当然,我可以把面前的所有重要任务放在一边,花几个小时慢慢地研究 PowerShell。
问题是 - 我有更好的事情要做,而命令窗口实用程序只是一个帮助我快速完成的辅助工具。我并不要求任何更复杂的东西。我的一些日常任务,如散步、吃饭和呼吸 - 都是自动完成的。命令行窗口也是如此,我希望保持这种状态。
有人知道如何将该选项重新放回上下文菜单吗?
谢谢。
答案1
找到了(令人惊讶的长)答案这里,所以我把它留在这里,以防将来能帮助到其他人……
答案2
这是我用来将 CMD 和 POWERSHELL 添加到 Windows 10 中的背景上下文菜单的 reg 文件的副本:
Windows Registry Editor Version 5.00
;Add_Open_CMD_and_Powershell_to_Context_Menu.reg
;Right-Click Background only
;CMD Prompt
[HKEY_CLASSES_ROOT\Directory\Background\shell\01MenuCmd]
"MUIVerb"="Command Prompts"
"Icon"="cmd.exe"
"ExtendedSubCommandsKey"="Directory\\Background\\ContextMenus\\MenuCmd"
[HKEY_CLASSES_ROOT\Directory\Background\shell\01MenuCmd]
"MUIVerb"="Command Prompts"
"Icon"="cmd.exe"
"ExtendedSubCommandsKey"="Directory\\Background\\ContextMenus\\MenuCmd"
[HKEY_CLASSES_ROOT\Directory\Background\ContextMenus\MenuCmd\shell\open]
"MUIVerb"="Command Prompt"
"Icon"="cmd.exe"
[HKEY_CLASSES_ROOT\Directory\Background\ContextMenus\MenuCmd\shell\open\command]
@="cmd.exe /s /k pushd \"%V\""
[HKEY_CLASSES_ROOT\Directory\Background\ContextMenus\MenuCmd\shell\runas]
"MUIVerb"="Command Prompt Elevated"
"Icon"="cmd.exe"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\Background\ContextMenus\MenuCmd\shell\runas\command]
@="cmd.exe /s /k pushd \"%V\""
; PowerShell
[HKEY_CLASSES_ROOT\Directory\Background\shell\02MenuPowerShell]
"MUIVerb"="PowerShell Prompts"
"Icon"="powershell.exe"
"ExtendedSubCommandsKey"="Directory\\Background\\ContextMenus\\MenuPowerShell"
[HKEY_CLASSES_ROOT\Directory\Background\shell\02MenuPowerShell]
"MUIVerb"="PowerShell Prompts"
"Icon"="powershell.exe"
"ExtendedSubCommandsKey"="Directory\\Background\\ContextMenus\\MenuPowerShell"
[HKEY_CLASSES_ROOT\Directory\Background\ContextMenus\MenuPowerShell\shell\open]
"MUIVerb"="PowerShell"
"Icon"="powershell.exe"
[HKEY_CLASSES_ROOT\Directory\Background\ContextMenus\MenuPowerShell\shell\open\command]
@="powershell.exe -noexit -command Set-Location '%V'"
[HKEY_CLASSES_ROOT\Directory\Background\ContextMenus\MenuPowerShell\shell\runas]
"MUIVerb"="PowerShell Elevated"
"Icon"="powershell.exe"
"HasLUAShield"=""
[HKEY_CLASSES_ROOT\Directory\Background\ContextMenus\MenuPowerShell\shell\runas\command]
@="powershell.exe -noexit -command Set-Location '%V'"