title: How to call a .bat file from any location in CMD on Windows
body: <p>I have a Batch file which I want to execute in CMD from any directory. Something like this:</p>
  
  <p>File name: MyBatch</p>
  
  <p>Path: C:\MyBatch.bat</p>
  
  <p>Open CMD:
  c:\Program Files> MyBatch</p>
  
  <p>How can I accomplish this?</p>