How to change the extension of all selected files at once?

3

1

Its possible to rename files all at once. But its not possible to change the extension of selected files all at once.

If windows doesn't support this facility .. then is there any batch script or something to work out with ???

InfantPro'Aravind'

Posted 2010-06-02T06:41:46.507

Reputation: 1 114

Answers

6

Command prompt example:

rename *.html *.htm

will rename all files with .html extension in the current directory to .htm

Mike Fitzpatrick

Posted 2010-06-02T06:41:46.507

Reputation: 15 062

yup. this is much satisfying :)) – InfantPro'Aravind' – 2010-06-02T07:02:27.697

1

You can use Total Commander that allows mass renaming in many ways...

humanfly

Posted 2010-06-02T06:41:46.507

Reputation: 531

Only for Windows, but Total Commander is an awesome tool for replacing the classic Windows File Manager. Small (around 5MB), portable, free (purchasing not obligatory), and constantly updating since the old times of Windows 95. Greatly adviced. – Sopalajo de Arrierez – 2014-03-17T14:12:03.930

1

On Linux you can do this rename 's/\.doc$/.rtf/' *.doc

The above renames all files with doc extension to the rtf extension

Peter

Posted 2010-06-02T06:41:46.507

Reputation: 111