<exec dir="C:\" command="cmd.exe /c junk.bat" os="windows"
output="C:\my.txt" />

----------
Craig S. Cottingham
[EMAIL PROTECTED]
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:[EMAIL PROTECTED]
> Sent: Friday, June 09, 2000 3:22 PM
> To: '[EMAIL PROTECTED]'
> 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
> 

Reply via email to