ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Akhil Kumar <akhil.ku...@infogain.co.uk>
Subject exec task
Date Tue, 17 Aug 2004 11:03:35 GMT
Hi folks,
  I wanted to run a DOS command from the ant scripts. for example "dir".

  How is this possible. I find out that "EXEC" task can be used to execute
external commands and executables but when I tried using it gives me some
exception as below:


java.io.IOException CreateProcess: dir error 2


following is the task script:

<exec dir="${src}" executable="dir"  output="dir.txt">
</exec>


any idea what could be the problem or any other way to achieve it?

Thanks in advance,
Regards,
Akhil

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message