开发者

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.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜