We can use setx
as discussed here.
setx PATH "%PATH%;C:\Something\bin"
But this command can just make changed to user PATH variable not the system one.
How can we make a similar system wide command?
We can use setx
as discussed here.
setx PATH "%PATH%;C:\Something\bin"
But this command can just make changed to user PATH variable not the system one.
How can we make a similar system wide command?
From powershell
Type
setx /?
to get basic command help. You'll easily discover:You need to run this from an elevated command prompt. Right-click the
cmd
shortcut and selectRun as Administrator
.E.g.
Caution:
We may destroy the current system's PATH variable. Make sure you backup its value before you modify it.