Windows中Shift+右键"在此处打开命令窗口"默认是采用cmd的方式打开.

<在此处打开命令窗口>替换为PowerShell打开模式_命令窗口

把cmd替换为PowerShell的方式打开.

1. Ctrl + R 输入regedit进入注册表

2. 找到[HKEY_CLASSES_ROOT\Directory\Background\shell\cmd\command]

3. 修改数据为powershell.exe -NoExit Set-Location "%V"