This is a follow-up to Set Permanent Environmental Variable in Windows XP.
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"
This is the 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?