title: Use batch file to copy first 6 lines to a new txt file
body: <p>I have tried a dozen different ways and cannot get it right.</p>
  
  <p>I have many text files in different folders, so I would like to reference the input file as a variable eg: *.txt (just use whatever txt file is in the same folder as the bat file).</p>
  
  <p>I need to copy the first 6 lines and paste them into a new txt file.<br>
  I would like to name it (but not essential) SAMPLE_original_txt_file_name</p>
  
  <p>EG:</p>
  
  <pre><code>Input = text01.txt
  Output = SAMPLE_text01.txt (this would contain the first 6 complete lines from text01.txt)
  </code></pre>
  
  <p>I would appreciate any help as my head now needs stitches from banging it too much against a wall...</p>