开发者

either SET and SETX do not set the value of %PATH%

开发者 https://www.devze.com 2023-04-06 04:36 出处:网络
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?

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号