title: Running ant from a batch file: Later commands don't run
body: <p>I have a batch file that runs ant and then copies one of the files that were produced:</p>
  
  <pre><code>ant -Dproject.version=1.1.2 release published
  copy /Y D:\dir1\MyJar.jar   D:\dir2\MyJar.jar
  </code></pre>
  
  <p>When I run the batch file, ant runs successfully, but the copy statement never happens, although it will work just fine if I type it in and hit Enter after the ant task has finished.</p>
  
  <p>What is going on here?</p>