title: Windows: in batch file, write multiple lines to text file?
body: <p>How can I do the following in a Windows batch file?</p>
  
  <ol>
  <li>Write to a file called subdir/localsettings.py</li>
  <li>Overwrite all existing content...</li>
  <li>...with multiple lines of text...</li>
  <li>...including a string that is "[current working directory]/subdir" (which I think might be <code>%cd%/subdir</code>?)</li>
  </ol>
  
  <p>Please note, I want to do this as part of a batch script so I can't use <code>con</code> + Enter (at least, maybe I can, but I don't know how to simulate Enter as part of a batch script). </p>
  
  <p>Thanks!</p>