either SET and SETX do not set the value of %PATH%
I'm executing the following command
SETX PATH "very_very_long_list";
after closing and opening comand line, ech开发者_如何转开发o %path%
outputs the old value. What I'm doing wrong?
Thank you in advance!
No need to use SETX PATH
. If you need to add onto the current PATH
, use
PATH=%PATH%;C:\another path\;C:\yet\another path\
Else if you need to wipe PATH completely and then add in your own parameters use
PATH=C:\path\;C:\another path\;C:\yet\another path\
No need to surround paths with double quotes as PATH
command sees spaces in pathnames.
精彩评论