ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Craig Cottingham <ccotting...@euronetservices.com>
Subject RE: calling .bat files from within ant projects
Date Fri, 09 Jun 2000 20:24:20 GMT
<exec dir="C:\" command="cmd.exe /c junk.bat" os="windows"
output="C:\my.txt" />

----------
Craig S. Cottingham
ccottingham@euronetservices.com
PGP key available from:
<http://pgp.ai.mit.edu:11371/pks/lookup?op=get&search=0xA2FFBE41>
PGP ID=0xA2FFBE41
PGP fingerprint=6AA8 2E28 2404 8A95 B8FC 7EFC 136F 0CEF A2FF BE41

> -----Original Message-----
> From: Chaganthi, Madhusudan R. [mailto:mvc9@cdc.gov]
> Sent: Friday, June 09, 2000 3:22 PM
> To: 'ant-dev@jakarta.apache.org'
> Subject: 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
> 

Mime
View raw message