title: What is the best way to do a substring in a batch file?
body: <p>I want to get the name of the currently running batch file <strong>without</strong> the file extension.  </p>
  
  <p>Thanks to <a href="https://stackoverflow.com/questions/343518/finding-out-the-file-name-of-the-running-batch-file">this link</a>, I have the file name <strong>with</strong> the extension... but what is the best way to do a substring in a batch file?</p>
  
  <p>Or is there another way to get the file name w/o the extension?</p>
  
  <p>It is safe to assume 3 letter extensions in this scenario.</p>