7

Is it possible to permanently add c:/project/bin to PATH i windows using only batch?

Kit Sunde
  • 946
  • 3
  • 12
  • 33

1 Answers1

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
  • 2
    You 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