title: Batch file to run a command in cmd within a directory
body: <p>I want to have a batch file(must be placed on desktop) which does the following;</p>
  
  <ul>
  <li>opens cmd</li>
  <li>navigates to a directory, e.g. <code>C:\activiti-5.9\setup</code></li>
  <li>runs a command within the directory, e.g. <code>ant demo.start</code> (this command runs the activiti server)</li>
  </ul>
  
  <p>I tried the following to reach to the directory but how to run command, <code>"ant demo.start"</code>?</p>
  
  <pre><code>START cmd.exe /k "cd C:\activiti-5.9\setup"
  </code></pre>
  
  <p>Thank you for the help.</p>
  
  <p><strong>EDIT:</strong></p>
  
  <p>Referring to <em>zb226's</em> answer below: One more question if you can answer me is how to make that cmd to be run as administrator? will the following work? </p>
  
  <p><code>START cmd /K "runas /user:administrator &amp; cd C:\activiti-5.9\setup &amp; ant demo.start"
  </code></p>