title: Batch script loop
body: <p>I need to execute a command 100-200 times, and so far my research indicates that I would either have to copy/paste 100 copies of this command, OR use a <code>for</code> loop, but the <code>for</code> loop expects a list of items, hence I would need 200 files to operate on, or a list of 200 items, defeating the point.</p>
  <p>I would rather not have to write a C program and go through the length of documenting why I had to write another program to execute my program for test purposes. Modification of my program itself is also not an option.</p>
  <p><strong>So, given a command, <code>a</code>, how would I execute it <code>N</code> times via a batch script?</strong></p>
  <p><em>Note: I don't want an infinite loop</em></p>
  <p>For example, here is what it would look like in Javascript:</p>
  <pre class="lang-js prettyprint-override"><code>var i;
  for (i = 0; i &lt; 100; i++) {
    console.log( i );
  } 
  </code></pre>
  <p><strong>What would it look like in a batch script running on Windows?</strong></p>