Is it possible to permanently add c:/project/bin
to PATH
i windows using only batch?
Asked
Active
Viewed 1.5k times
1 Answers
10
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

Ryan Ries
- 55,481
- 10
- 142
- 199
-
2You might not want to use `setx` because it could result in a corrupt Path as described here: http://stackoverflow.com/a/10411111/470749 – Ryan Apr 20 '16 at 23:13