"Offering free computer help, hints, and tips to the Internet populace." Now with over 3,820 tips!

DOS and Batch Files

Rename All Files From One Extension to Another

SUMMARY: Quickly change the extension of all files in a directory.


 

(Note that this may not work on early versions of DOS, so experiment.)

If you ever need to rename all files in a directory from one extension to another, for example, *.new to *.old, you can use wildcards with the rename command. In this example, the command would be:

rename *.new *.old



Print This Tip

Get E-Mail When New Tips are Online

Return to the DOS and Batch Files page.

 


New in MalekTips:

RSS Feeds- Subscribe!

You want the latest tech tips and tricks in your e-mail Inbox - FREE? Type your e-mail address below and click 'Get Tips!'.
 


( sample / details )
( opt-out instructions )