title: Create a batch file to run an .exe with an additional parameter
body: <p>I need a batch file which will do the following:</p>
  
  <pre><code>1. Open CMD and navigate to a location C:/Users/...../program.exe
  2. Run the program.exe with an additional command to point it to a config file:
  e.g. "program.exe C:/Users/..../configFile.bgi"
  </code></pre>
  
  <p>How can I do this? </p>
  
  <p>I tried this but with no luck:</p>
  
  <pre><code>start "C:\Users\Ben\Desktop\BGInfo\bginfo.exe C:\Users\Ben\Desktop\BGInfo\dc_bginfo.bgi"
  pause
  </code></pre>
  
  <p><strong>Update</strong></p>
  
  <p>I've used the solution provided by Ganesh (below) and came up with this:</p>
  
  <pre><code>cd C:\Users\Ben\Desktop\BGInfo\
  bginfo.exe C:\Users\Ben\Desktop\BGInfo\dc_bginfo.bgi
  </code></pre>
  
  <p>I've tested it on a local machine (changing the directories) but on the server (with the directory above) it does not work... </p>
  
  <p>The folder directory with batch file:
  <img src="https://i.stack.imgur.com/VzNbe.png" alt="enter image description here"></p>
  
  <p>The error
  <img src="https://i.stack.imgur.com/eAexY.png" alt="enter image description here"></p>