title: Split text file into multiple files using windows batch scripting
body: <p>I need to split one text file into multiple files using windows batch script, could anybody light me up?</p>
  
  <p>sample text file:</p>
  
  <pre><code>abc1-10
  abc1-11
  abc1-12
  xyz2-01
  xyz2-02
  xyz3-01
  xyz3-02
  </code></pre>
  
  <p>in this case, it has to split into 3 files, first one consists the lines <code>abc1-xx</code>, second one consists <code>xyz2-xx</code> and <code>xyz3-xx</code> go to the last one</p>