Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a tool for easily renaming a part of the filename for a batch of files in one go?

For instance if I have:

  • foo_bar 1.jpg
  • foo_bar 2.jpg

let's say I want to remove the underscore to get the following:

  • foo bar 1.jpg
  • foo bar 2.jpg
share|improve this question

In the command window:

REN foo_bar*.jpg "foo bar*.jpg"
share|improve this answer
Hey REN was more powerful than I though. However I notice that only works if the results is the same length. For instance: REN foo_bar*.jpg "pic*.jpg" results in files called "pic_bar1.jpg" rather than what I would want i.e. "pic1.jpg" – Vdex Jul 30 '09 at 21:18
up vote 3 down vote accepted

From the how-can-i-mass-rename-files-in-dos question asked about an hour after mine I have actually found a really good free tool that does exactly what I want: bulkrenameutility it is a free rename utility. It is kind of confusing at first, but I like the preview mode, and it can do regular expressions, seems very powerful!

share|improve this answer

There's a freeware file renamer utility that I use that's pretty easy to get into. All you need to do is to choose the files that you need renamed, make sure the correct options are selected, and then to apply the changes.

It also has a handy "Undo" feature that you can use if the changes you just applied wasn't what you were looking for.

share|improve this answer

Total Commander comes with an extremely powerful multi-file rename utility among it's features. It's not free but there is a run-limited trail.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .