title: How do I loop a batch script only a certain amount of times?
body: <p>How do I loop a batch script only a certain amount of times (x10 or something)?
  If the code was:</p>
  
  <pre><code>@echo off                                                                     
  :loop1                                                                              
  Start taskmgr.exe                                                       
  Goto loop                                                                         
  :loop2                                                                             
  Start cmd.exe                                                                 
  goto loop2     
  </code></pre>
  
  <p>How can loop loop1 and few times and go to loop2? </p>
  
  <p>Any helpful answer would be appreciated :)</p>