title: Command are ignored after ant command in batch file
body: <p>Following is the bat script code block on which i am working on:</p>
  
  <pre><code>ECHO off 
  
  IF NOT EXIST "%ANT_HOME%" (   
  
      SET ANT_HOME=%~dp0%build\apache-ant-1.8.2
      SET ANT_BIN=%~dp0%build\apache-ant-1.8.2\bin
  
      SET PATH | FIND "%ANT_HOME%;%ANT_BIN%"
  )
  cd "build\Run"
  ant -q
  
  cd ../..
  echo "Program Terminated!"
  exit
  </code></pre>
  
  <p>Now, my build.xml file is inside this build\Run folder so that i am first navigating to build/Run before running ant -q command (NOTE: I don't want to change this method of navigating). </p>
  
  <p>The moment ant -q command is executed following things happen:</p>
  
  <ol>
  <li>Set the environment variables as the condition.</li>
  <li>Change directory to build\Run.</li>
  <li>As my build.xml is inside the Run directory the ant -q command run correctly. </li>
  <li>Ant executed correctly and not ant script terminates.</li>
  <li>Now my current path will be build\Run ! correct   &lt;= Here i don't want this after ant is terminated, instead i want to come out from build\Run that's why i used <code>cd../..</code> </li>
  </ol>
  
  <p>But the problem is I am not able to execute the commands after ant -q. This happens be the program control goes from <code>BATCH =&gt; ANT</code>.</p>
  
  <p>Is there any way to execute my command after ant command from bat script itself ? </p>