ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chaganthi, Madhusudan R." <m...@cdc.gov>
Subject calling .bat files from within ant projects
Date Fri, 09 Jun 2000 20:21:54 GMT
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


Mime
View raw message