title: Batch file For Loops with 2 arrays
body: <p>I wish to have the for loop in my batch file to iterate 2 arrays. The pseudo code in my mind is something like below:</p>
  
  <pre><code>for each i in array1 
   print i
   print array2[x++]
  </code></pre>
  
  <p>array1 and array2 will have the same size.</p>
  
  <p>Will I be able to achieve the same result in batch file?
  I currently have the following code. </p>
  
  <pre><code>for %%i in %APP_LIST1% DO (
      %appcmd% add app /site.name:%siteName% /path:/%%i /physicalPath:"d:\Apps\%%i"
  )
  </code></pre>
  
  <p>I would like to use %APP_LIST2% (aka array2) in the same for loop as well.</p>
  
  <p>Help please!</p>