The answer is in post #9
[ Last edited by tireless on 2008-5-26 at 06:40 PM ]
[ Last edited by tireless on 2008-5-26 at 06:40 PM ]
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!
Originally posted by HAT at 2008-1-2 12:54 AM:
reg add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Environment" /v Path /t REG_EXPAND_SZ /d "%path%;c:\test" /f
Originally posted by tireless at 2008-1-2 21:12:
I had tried this before, but it doesn't take effect immediately. If I enter set at the command line, I still can't see any change...
| Rater | Score | Time |
|---|---|---|
| tireless | +4 | 2008-01-03 17:52 |
::change the value of the path environment variable, add e:\tools
wmic ENVIRONMENT where "name='path' and username='<system>'" set VariableValue="%path%;e:\tools"
Originally posted by tireless at 2008-5-27 01:36 PM:
It seems the ; should be removed. If you don't remove it, there will be two ; after the modification.