title: Order in which command prompt executes files with the same name (a.bat vs a.cmd vs a.exe)
body: <p>What is the order in which the Windows command prompt executes files with the same name, but different extensions?</p>
  
  <p>For example, I have a bunch of executable files: <code>something.cmd</code>, <code>something.bat</code> and <code>something.exe</code>. Which of these would be executed when I typed <code>something</code> into a command prompt (given they were on the path, etc.)? If that file did not exist which one would then be executed?</p>
  
  <p>Is there a reference that describes this?</p>