Set Permanent System variable through bat file
- by shyameniw
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??