windows - Adding multiple lines in registry -
i have application use on multiple machines. export registry settings have configure on each machine can script them imported @ startup. application allows me put multiple lines of text text box, overlay text on printouts. saves text in string in registry. when export registry, string looks this:
"sendorsement"="line 1 of text line 2 of text"
this doesn't import because of break in string. ideas how make import nicely? don't have option use 1 line of text in settings.
instead of using standard .reg file got exporting settings, you'll have via vbscript, using vbcrlf
introduce newlines in string.
set shellobj = createobject("wscript.shell") shellobj.regwrite "hkcu\software\key\sendorsement", "line1" & vbcrlf & "line2", "reg_sz"
Comments
Post a Comment