title: Batch file to run a command in Administrator Command Prompt
body: <p>I've created MyApplication.msi package using WiX Installer, kept in D drive and running it via Administrator Command Prompt as follows:</p>
  
  <ol>
  <li>Right click on cmd.exe - Run as administrator</li>
  <li>C:\Windows\system32><strong>"D:\MyApplication.msi"</strong></li>
  </ol>
  
  <p>The package gets started and runs as required.</p>
  
  <p>Now, I need a <strong>batch</strong> file which will be able to do above steps automatically.</p>
  
  <p>How can this be done?</p>