title: 2 consecutive for loops will not run
body: <p>Why is batch not running this second for loop? What am i doing wrong? The first loop runs fine, but the second loop is never hit. I even put an echo statement after the first loop and it is not even displayed.</p>
  
  <pre><code>FOR /D %%X in (..\Apps\Mine\*) do if exist "%%X\AndroidManifest.xml" ("%1\android.bat" update project -p "%%X") else (
  echo This is not an android project.
  )
  
  FOR /D %%Y in (..\Apps\Theirs\*) do if exist "%%Y\AndroidManifest.xml" ("%1\android.bat" update project -p "%%Y") else (
  echo This is not an android project.
  )
  </code></pre>
  
  <hr>
  
  <p><strong>More details</strong></p>
  
  <p><em>The current working directory also has no <code>()</code> or spaces in the name.</em></p>
  
  <p><em>Windows7 64bit.</em></p>
  
  <p><em>This is the exact argument i am using:</em></p>
  
  <pre><code>&gt; update_project.bat C:\Users\MyUserName\android-sdks\tools
  </code></pre>
  
  <p><em>That is all the contents of the batch script. There is nothing else in it.</em></p>
  
  <p><em>Here is the directory structure. The batch script is run from the CWD.</em></p>
  
  <ul>
  <li>Projects
  <ul>
  <li>Apps
  <ul>
  <li>Mine
  <ul>
  <li>App1</li>
  <li>App2</li>
  </ul></li>
  <li>Theirs
  <ul>
  <li>App3</li>
  <li>App4</li>
  </ul></li>
  </ul></li>
  <li>Tools (CWD)</li>
  </ul></li>
  </ul>