cmd.exe SET command does not save values for new cmd.exe sessions

Posted by Shiftbit on Super User See other posts from Super User or by Shiftbit
Published on 2010-05-28T20:39:55Z Indexed on 2010/05/28 20:54 UTC
Read the original article Hit count: 554

The set command does not save values between cmd.exe sessions. How can I save environmental values between new cmd.exe sessions?

For example the set command will work for my current session only:

set path=%path%;C:\Mingw\bin

Upon restarting cmd.exe my path string has been reset.

Possible solution: .bashrc or .bash_profile equivalent for DOS

© Super User or respective owner

Related posts about Windows

Related posts about command-line