You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by "Chaganthi, Madhusudan R." <mv...@cdc.gov> on 2000/06/09 22:21:54 UTC

calling .bat files from within ant projects

Hi All
Can I call "bat" files from within ant scripts?
If so, how do I do it?

I tried both

<target name="batch">
<exec dir="C:\" command="C:\junk.bat" os="windows" output="C:\my.txt"/>
</target>

AND


<target name="batch">
<exec dir="C:\" command="call C:\junk.bat" os="windows" output="C:\my.txt"/>
</target>

Thanks
Madhu