Setting Windows PowerShell environment variables

前端 未结 18 1919
日久生厌
日久生厌 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:27

    If, some time during a PowerShell session, you need to append to the PATH environment variable temporarily, you can do it this way:

    $env:Path += ";C:\Program Files\GnuWin32\bin"
    

提交回复
热议问题