Your script works for me ... <project name="test" basedir="." default="main"> <taskdef resource="net/sf/antcontrib/antcontrib.properties"/>
<target name="main"> <property name="src.file.head" value="notepad.exe;notepad.exe"/> <foreach list="${src.file.head}" delimiter=";" param="src.file" target="doExec" inheritall="true"/> </target> <target name="doExec"> <echo message=" ${src.file}"/> <exec executable="${src.file}" failonerror="true" failifexecutionfails="false"> </exec> </target> </project> >I put the ant file below and the content of the test12.txt is >// test exec file notepad.exe; notepad.exe Not sure about the blank after ';' .... Jan --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]