Search code examples
variablespathcmdwindows-vista

How to change PATH in windows OS via cmd


I am trying to add a path, in PATH variable. I run cmd.exe as administrator and used

setx PATH "%PATH%;C:\MinGW\bin"
setx PATH "%PATH%;C:\MinGW\msys\1.0\bin"

I then restarted my computer, but if I type path I don't see the paths that I set there. Note that with the exact same way I was able to set some other directories on PATH.

Any idea on what might be wrong?


Solution

  • you should use

    "My Computer" > "Properties" > "Advanced" > "Environment Variables" > "Path".