title: how to do loop in Batch?
body: <p>I want to create something like this</p>
  
  <pre><code>dup.bat infile outfile times
  </code></pre>
  
  <p>example usage would be</p>
  
  <pre><code>dup.bat a.txt a5.txt 5
  </code></pre>
  
  <p>at it would create file a5.txt that has the content of a.txt repeated 5 times</p>
  
  <p>however I do not know how to do for loop in batch, how to do it?</p>