If you have multiple files having an extension like jpeg and you want to batch rename them to jpg as extension you can do that with a single line of code: FOR /R %f IN (*.jpeg) DO REN "%f" *.jpg In my case I wanted to batch rename all my template files from .jade to .pug, as there was an issue with trademarks,…