Batch rename part of a file in windows [closed]
Andrew Mclaughlin
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
7 Answers
In the command window:
REN foo_bar*.jpg "foo bar*.jpg" 1 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!
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.
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.
Here is a solution that uses PowerShell (on a single line):
Get-ChildItem 'foo_bar*.jpg' | Rename-Item -NewName { $_.Name -Replace 'foo_bar','foo bar'}
You could also use move:
move /y path\dfihsdfsdjsdfd.txt path\filename.txt "Advance renamer" free software for windows 10 is the best option to rename bulk files very easily.