Is it possible to permanently add c:/project/bin
to PATH
i windows using only batch?
1 Answer
This command will permanently set the current user's "Path" variable:
setx path "%PATH%;C:\Project\Bin"
The next command will adjust the system variable instead of the user variable:
setx path "%PATH%;C:\Project\Bin" /M
-
2You might not want to use
setx
because it could result in a corrupt Path as described here: stackoverflow.com/a/10411111/470749– RyanApr 20, 2016 at 23:13