title: Ant cannot find the path specified
body: <p>I'm trying to run a .bat file in an Ant script, which is as follows:</p>
  
  <pre><code>&lt;property name="winPath" value="C:\jboss-root\jboss-fuse-6.1.0.redhat-379\bin"/&gt;
  &lt;property name="cmdPath" value="C:\Windows\System32\cmd.exe" /&gt;
  &lt;echo message="Windows: ${winPath} | ${cmdPath}" /&gt;       
  &lt;exec dir="${winPath}" executable="${cmdPath}"&gt;
      &lt;arg value="/c"/&gt;&lt;arg value="fuse.bat"/&gt;&lt;arg value="-p"/&gt; 
  &lt;/exec&gt;  
  </code></pre>
  
  <p>The output of this script is as follows:</p>
  
  <pre><code>[echo] Executing JBoss Fuse Start Script...
  [echo] Windows: C:\jboss-root\jboss-fuse-6.1.0.redhat-379\bin | C:\Windows\System32\cmd.exe
  [exec] The system cannot find the path specified.
  [exec] Result: 3
  </code></pre>
  
  <p>The file does exist, and by running the command manually in cmd it executes the script fine.</p>
  
  <pre><code>C:\jboss-root\jboss-fuse-6.1.0.redhat-379\bin&gt;C:\Windows\System32\cmd.exe /c fuse.bat -p
  Please wait while JBoss Fuse is loading...
  </code></pre>
  
  <p>I've tried replacing \ for /, but no change. The Ant documentation says to either place the filepaths in PATH, or use absolute filepaths. I am not able to modify the PATH files, though.</p>