I tried the <apply>-Task:

.\build.xml
================================================
<project name="test" default="main" basedir=".">
  <target name="main">
    <apply executable="mybat.bat">
      <fileset dir="files" />
    </apply>
  </target>
</project>

.\mybat.bat
================================================
copy %1 %1.copy

.\files\
================================================
1.txt, 2.txt, 3.txt, 4.txt


The target copied all four files.


mit freundlichen Grüßen
Jan Matèrne 

RZF NRW 
Sachgebiet 314-P Methodenberatung 
Internet:       [EMAIL PROTECTED] 



> -----Ursprüngliche Nachricht-----
> Von:  Swaminathan G [SMTP:[EMAIL PROTECTED]]
> Gesendet am:  Dienstag, 9. Juli 2002 13:35
> An:   Ant Users List
> Betreff:      command line task
> 
> Hi,
> 
> I need to call a command line bat file with a parameter which will be a
> filename.
> I need to do this for all files in a particular directory.
> 
> how do i do this with exec ??
> 
> thnx,
> Swaminathan G.
> 
> --
> To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

<<application/ms-tnef>>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to