title: create folders from each line of a textfile in bat
body: <p>I have a text file as follows:</p>
  
  <p><strong>file.txt</strong></p>
  
  <pre><code>1. Adams Johnson - VB
  2. Mike Robert - C++
  3. victor -java
  ... and so on for almost 700 entries in that text file
  </code></pre>
  
  <p>I have to create folders with each line of this text file using a batch file.</p>
  
  <p>I have tried the following code:</p>
  
  <pre class="lang-dos prettyprint-override"><code>@echo off
  for /f "tokens=*" %%a in (file.txt) do (
  
  mkdir %%a
  
  )
  </code></pre>
  
  <p>but my folders are created as follows:</p>
  
  <pre><code>1
  2
  3
  ... so on...
  Adams 
  Johnson
  Mike 
  Robert
  Victor 
  ... so on...
  </code></pre>
  
  <p>I want it something like this:</p>
  
  <pre><code>1. Adams Johnson - VB
  2. Mike Robert - C++
  3. victor -java
  ... and so on.
  </code></pre>
  
  <p>How can I get that?</p>