Command Prompt/DOS: How to batch rename files

Surprisingly, the RENAME (aka REN) command in DOS supports wildcards.

If you had a stack of files called:

  • DSC_0001.JPG
  • DSC_0002.JPG
  • DSC_0003.JPG
  • DSC_0004.JPG

You could call:

REN DSC_*.JPG Photo_*.jpg

And it'll replace the text accordingly like:

  • Photo_0001.jpg
  • Photo_0002.jpg
  • Photo_0003.jpg
  • Photo_0004.jpg

What's even more surprising is that this solution came from Yahoo answers!

b2DSD
Hit me outta nowhere!

Source

 
Copyright © Twig's Tech Tips
Theme by BloggerThemes & TopWPThemes Sponsored by iBlogtoBlog