Start-Process -WorkingDirectory as administrator does not set location

后端 未结 4 683
攒了一身酷
攒了一身酷 2021-02-18 16:58

When I enter the command

Start-Process powershell -WorkingDirectory \"D:\\folder\"

it opens new PowerShell window with D:\\folder

4条回答
  •  臣服心动
    2021-02-18 17:36

    I just ran your code example and it opened correctly for me at the WorkingDirectory location. Ensure the directory exists before you run the command. I tested against a drive on C and secondary drive as well and both worked.

提交回复
热议问题