win+r | 輸入regedit
命令打開註冊表。
定位到該路徑:
計算機\HKEY_CLAssEs_RooT\directory\Background\shell\powershell\command
右鍵 | 修改,輸入:
cmd.exe /s /k pushd "%V"
cmd和powershell的設置值
### cmd用這個
cmd.exe /s /k pushd "%V"
### powershell用這個
powershell.exe -noexit -command set-Location -literalpath '%V'