Set Permanent System variable through bat file

Posted by shyameniw on Super User See other posts from Super User or by shyameniw
Published on 2010-04-27T10:58:16Z Indexed on 2010/04/27 11:03 UTC
Read the original article Hit count: 207

Filed under:

I want to change System variables in XP through running a bat file But when i run it i get the error

Too many command-line parameters

for the following code

**set KEY="HKLM\SYSTEM\CurrentControlSet\Control\Sessions Manager\Environment" set PATHxx=%Path% reg add %KEY% /v Pathx /t REG_EXPAND_SZ 5 /d %PATHxx%**

How can i fix this??

© Super User or respective owner

Related posts about windows-xp