title: How do I add a multiline REG_SZ string to the registry from the command line?
body: <p>As part of a build setup on a windows machine I need to add a registry entry and I'd like to do it from a simple batch file.</p>
  
  <p>The entry is for a third party app so the format is fixed.</p>
  
  <p>The entry takes the form of a REG_SZ string but needs to contain newlines ie. 0xOA characters as separators.</p>
  
  <p>I've hit a few problems.</p>
  
  <p>First attempt used regedit to load a generated .reg file.  This failed as it did not seem to like either either long strings or strings with newlines.  I discovered that export works fine import fails.  I was able to test export as the third party app adds similar entries directly through the win32 api.</p>
  
  <p>Second attempt used the command REG ADD but I can't find anyway to add the newline characters everything I try just ends up with a literal string being added.</p>