China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-12 23:57
中国DOS联盟论坛 » DOS批处理 & 脚本技术(批处理室) » How to modify PATH View 700 Replies 2
Original Poster Posted 2010-01-18 18:54 ·  中国 重庆 电信
初级用户
Credits 36
Posts 17
Joined 2009-11-07 16:50
16-year member
UID 154358
Gender Female
Status Offline
I used the command path to modify PATH,


path %path%^;d:


After running the command, I checked again with path, and it was modified successfully.

But when I close the cmd window and open a new one, then use path again, I find that the new path has not been added. The value is still the same as before it was modified.

How can I make my modification take effect?
Floor 2 Posted 2010-01-18 19:35 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
S smile 微笑,L love 爱,O optimism 乐观,R relax 放松,E enthusiasm 热情...Slore
Floor 3 Posted 2010-01-18 22:57 ·  美国 惠普HP
版主
★★★★★
Credits 9,023
Posts 5,017
Joined 2007-05-31 19:39
19-year member
UID 89899
Gender Male
Status Offline
reg add
or
wmic
Forum Jump: