Call batch files inside nant

How can I call a batch file inside a nant script ??? (Perhaps with a purpose that invokes the batch file).

+5
source share
3 answers

This is pretty easy, actually - I will try to illustrate:

 <target name="run-command">
   <exec program="ConsoleTest.exe" basedir="${test.dir}">
     <arg value="-cp" />
   </exec>
 </target>

The isir shell is optional; it indicates where to start the program. But if your program is on the way (like ping), you probably shouldn't worry about that.

Check out the official documentation :)

+8
source

, nantcontrib? javascript , , , nantcontrib concat, .

+2
+1
source

All Articles