Windows: in batch file, write multiple lines to text file?

How can I do the following in a Windows batch file?

  1. Write to a file called subdir/localsettings.py
  2. Overwrite all existing content...
  3. ...with multiple lines of text...
  4. ...including a string that is "[current working directory]/subdir" (which I think might be %cd%/subdir?)

Please note, I want to do this as part of a batch script so I can't use con + Enter (at least, maybe I can, but I don't know how to simulate Enter as part of a batch script).

Thanks!

28
задан 2 March 2011 в 20:12
поделиться