Can I permanently add to PATH in windows using batch?

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


Solution 1:

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