Batch Files: Let's rename a extension

Started by Silver Knight, 18-08-2011

0 Members and 1 Guest are viewing this topic.

Silver Knight

This tutorial will teach you how to mass-rename every file's extension (.mdl, .jpg etc) to a different extension.


First of all you need to create a batch file, it's simply done by opening up notepad and saving the file as FILENAME.bat It will then be a batch file.



>The Syntax:

ren *.(current extension name) *.(extension you want)
Since I want to change the extension from .jpg to .png, in my case the command line would be:
ren *.jpg *.png




This works for any type of extension renaming and will rename every file in the allocated folder which meets it's criteria to what you have specified.


If you want the command prompt to stay open after it's finished, you can always add in "Pause" so it will not instantly close.


Quotebreslau: if i cant cheat i dont wanna play
breslau: period