Setting Windows PowerShell environment variables

前端 未结 18 1769
日久生厌
日久生厌 2020-11-22 11:03

I have found out that setting the PATH environment variable affects only the old command prompt. PowerShell seems to have different environment settings. How do I change the

18条回答
  •  醉酒成梦
    2020-11-22 11:17

    Open PowerShell and run:

    [Environment]::SetEnvironmentVariable("PATH", "$ENV:PATH;", "USER")
    

提交回复
热议问题