title: Increment a variable on each cycle in a batch file?
body: <p>I have a batch script which loops and I want to count how many cycles it has done.</p>
  
  <p>This is how the script looks:</p>
  
  <pre><code>@echo off
  title MyTitle
  set cycles=0
  :startpoint
  echo %cycles%
  (my command)
  goto startpoint
  </code></pre>
  
  <p>I would like to be able to see the variable "cycles" increment by <code>1</code> each time it goes back to <code>:startpoint</code>, how do i do that?</p>