Reputation: 3731
I'm executing the following command
SETX PATH "very_very_long_list";
after closing and opening comand line, echo %path%
outputs the old value. What I'm doing wrong?
Thank you in advance!
Upvotes: 3
Views: 7512
Reputation: 15920
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.
Upvotes: 4