Been looking for ways that deal with special chars ( REG_SZ in specific ).
Did some basic tests and found some ways that seem to work.
test values are:
Code: Select all
regPath: 'HKLM\SOFTWARE\ED\This "^wo rks!"'
regKey: 'This "^wo rks!"'
regVal: 'This "^wo rks!"'
Code: Select all
reg add "HKLM\SOFTWARE\ED\This '"'"^wo rks!'"'"" /v "This \"^^wo rks^!\"" /t REG_SZ /f /d "This \"^^wo rks^!\""
Hope it helps,