title: How to run multiple commands with arguments from single Ant exec task
body: <p>On windows, I am trying to execute two commands (.cmd and .exe) later requiring parameters,in one exec() task. This is to avoid using two shell ,however only first command is getting executed.</p>
  
  <p>Following is the Ant snippet</p>
  
  <pre><code>        &lt;exec executable="cmd" dir="C:\PROGRA~1\IBM\IIB\10.0.0.7\server\bin\"&gt;
              &lt;arg value="/c mqsiprofile.cmd &amp;amp; C:\PROGRA~1\IBM\IIB\10.0.0.7\server\bin\mqsideploy.exe" /&gt;
              &lt;arg value="IIBNODE1" /&gt;
              &lt;arg value="-e" /&gt;
              &lt;arg value="default" /&gt;
              &lt;arg value="-a" /&gt;
              &lt;arg value="${bar.name}" /&gt;
          &lt;/exec&gt;
  </code></pre>
  
  <p>I also ran it without &amp;amp and replacing "PROGRA~1" with "Program Files", still the same issue. Please suggest.</p>