File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Ant, Maven and Other Build Tools and the fly likes Ant target to load an external batch file (.bat) ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Ant target to load an external batch file (.bat) ?" Watch "Ant target to load an external batch file (.bat) ?" New topic
Author

Ant target to load an external batch file (.bat) ?

Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
How to write an Ant target to load an external batch file (.bat) ?

Thanks
Giovanni De Stefano
Ranch Hand

Joined: Aug 17, 2004
Posts: 144
Hi!

You can use this:



Where testbat.bat is your batch file, I used the following brainless batch file:



Let me know if it works!
Giovanni


SCJP 1.4
Edward Chen
Ranch Hand

Joined: Dec 23, 2003
Posts: 798
it works .

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Ant target to load an external batch file (.bat) ?
 
Similar Threads
How to make exe file?
Error: The name specified is not recognized as ...
Environment Problem
Executing DOS commands through ANT
ANT BUILD.xml Vs BATCH