升级到Windows10后,发现原来shift+鼠标右键的“在此处打开cmd窗口”选项不见了,改成了“在此处打开powershell窗口”。虽然微软力推powershell,不过还是用不习惯。
RegEdit
定位 HKCRDirectoryBackgroundshellPowershellcommand
修改该项下的默认值,改为CMD模式:
cmd.exe /s /k pushd "%V"
恢复Powershell模式
powershell.exe -noexit -command Set-Location -literalPath '%V'