title: Windows Batch, how to remove first line and last line and save as a new text file
body: <p>text1.txt</p>
  
  <pre><code>20150716
  aaaa
  bbbb
  cccc
  dddd
  END
  </code></pre>
  
  <p>I would like to remove 20150716, then the whole text will move up by 1 line and remove the last particular string "END".
  Finally, save as a new file called text1_copy.txt.
  Then, file becomes:</p>
  
  <pre><code>aaaa
  bbbb
  cccc
  dddd
  </code></pre>
  
  <p>Any ideas? Thanks.</p>