What is the best way to do a substring in a batch file?

I want to get the name of the currently running batch file without the file extension.

Thanks to this link, I have the file name with the extension… but what is the best way to do a substring in a batch file?

Or is there another way to get the file name w/o the extension?

It is safe to assume 3 letter extensions in this scenario.

3 Answers
3

Leave a Comment