How to update system PATH variable permanently from cmd?

后端 未结 3 1639
一整个雨季
一整个雨季 2021-01-01 11:01

We can use setx as discussed here.

setx PATH \"%PATH%;C:\\Something\\bin\"

But this command can just make changed to user PATH

3条回答
  •  暗喜
    暗喜 (楼主)
    2021-01-01 11:37

    From powershell

    setx /M PATH "$($env:path);c:\program files\mynewprogram"
    

提交回复
热议问题