posted 16 years ago
Thank you very very much,
Right now I have a program print out current directories, I'm try to figure out how can I make a loop and print out folders and files under each folder?
I also want to distinguish the path difference for folder and files.
Any help would be greatly appreciated.
Thank you again
<target name="test">
<exec dir="${src.dir}" executable="ls" output="dir.txt">
<arg line="-la" ></arg>
</exec>
</target>
I'm trying to work out if command "find" will work for me in both unix and windows.
and also the "dir" command, but couldn't get it to work.
<target name="test">
<exec dir="${src.dir}" executable="dir" output="dir.txt">
<arg line="* /s" ></arg>
</exec>
</target>
[ November 28, 2008: Message edited by: Ellen fish ]
[ November 28, 2008: Message edited by: Ellen fish ]