你好,
这个问题看起来像是命令的参数少了引号。请打开注册表编辑器,找到下面两个键
Computer\HKEY_CLASSES_ROOT\Directory\shell\Powershell\command
Computer\HKEY_CLASSES_ROOT\Drive\shell\Powershell\command
确保右侧默认值的命令是
powershell.exe -noexit -command Set-Location -literalPath '%V'
在路径中有空格的目录 在空白住按住SHIFT后 按右键 右键在此处打开Power Shell 出现BUG
我知道是 手动进入路径 加上引号就可以 CD "C:\Program Files"
但是这个右键要怎么修复?
锁定的问题。 此问题已从 Microsoft 支持社区迁移。 你可投票决定它是否有用,但不能添加评论或回复,也不能关注问题。
你好,
这个问题看起来像是命令的参数少了引号。请打开注册表编辑器,找到下面两个键
Computer\HKEY_CLASSES_ROOT\Directory\shell\Powershell\command
Computer\HKEY_CLASSES_ROOT\Drive\shell\Powershell\command
确保右侧默认值的命令是
powershell.exe -noexit -command Set-Location -literalPath '%V'
没用 还是报错 改完后系统后也是重启过。
我对比了一下
WIN7的命令是双引号
WIN10的命令是单引号
新装的WIN11也是双引号 改成单引号后 重启系统后 还是报错
请打开注册表编辑器,找到下键
计算机\HKEY_CLASSES_ROOT\Directory\Background\shell\Powershell\command
确保右侧默认值的命令是
powershell.exe -noexit -command Set-Location -literalPath '%V'
参考资料:https://blog.csdn.net/u010160146/article/details/143165385?fromshare=blogdetail&sharetype=blogdetail&sharerId=143165385&sharerefer=PC&sharesource=u010160146&sharefrom=from_link