title: how to loop through a file and write to disk using a windows batch file?
body: <p>I would like to know how to loop through lines with colons in a text file using a Windows batch file and get the second token and write that token to disk.</p>
  
  <p>eg:-</p>
  
  <blockquote>
    <p>Name : -I$HAN-</p>
  </blockquote>
  
  <pre><code> I want -I$HAN- to write to disk.
  </code></pre>