Page 1 of 1

REG_SZ add,del,etc undocumented ...

Posted: 09 Feb 2012 04:08
by Ed Dyreen
'
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!"'
from commandline:

Code: Select all

reg add "HKLM\SOFTWARE\ED\This '"'"^wo rks!'"'"" /v "This \"^^wo rks^!\"" /t REG_SZ /f /d "This \"^^wo rks^!\""
Not sure whether it's bullet proof :?


Hope it helps, :wink: