title: Running a BAT file from ANT
body: <p>I have gone through number of posts on the very forum but couldn't sort it out. I am trying to run a BAT file from ANT script. The folder hierarchy is like this</p>
  
  <pre><code>- Project
  | - build.xml
  | - build-C
  | | - test.bat
  </code></pre>
  
  <p>The ANT file that i wrote so for is</p>
  
  <pre><code>&lt;project name="MyProject" basedir="."&gt;
      &lt;property name="buildC" value="${basedire}\build-C" /&gt;
  
      &lt;exec dir="${buildC}" executable="cmd" os="Windows XP"&gt;
          &lt;arg line="/c test.bat"/&gt;
      &lt;/exec&gt;
  &lt;/project&gt;
  </code></pre>
  
  <p>The bat file content is</p>
  
  <pre><code>echo In Build-C Test.bat
  </code></pre>
  
  <p>It says that build failed .. :s i dun know what wrong am i doing ?</p>