REG_SZ add,del,etc undocumented ...

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

REG_SZ add,del,etc undocumented ...

#1 Post by Ed Dyreen » 09 Feb 2012 04:08

'
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:

Post Reply