Renaming Files (Windows)

Black Hole

May contain traces of nut
Anybody got a clever way to replace a load of "%20" strings with a space, in a folder full of filenames?
 

HarveyB

Active Member
Try "BulkRenameUtility" it's free and extremely versatile. I use it all the time to rename blocks of photo files.


Sent from my iPad using Tapatalk
 

HarveyB

Active Member
Yep, setting the appropriate options can be a bit tricky (so many to choose from!) but once you figure it out it's an excellent tool.


Sent from my iPad using Tapatalk
 
D

Deleted member 473

There are a few of these utilities. Look for Oscar's Renamer and Advanced Renamer too.
 

af123

Administrator
Staff member
Powershell:

Code:
Dir | Rename-Item -NewName { $_.Name -replace "%20"," " }

Edit: I quite like Powershell with its mix of Bourne shell and TCL with a bit of Perl thrown in...
 
Last edited:
D

Deleted member 473

That's 4 I have to chose from now. Oh, woe is me. How will I ever cope?:frantic:
It's much easier in Linux/Unix. I do like the idea of pumping the output of a directory listing into an editor, though.

Metamorphose. I don't bother with the rest any more.

And you can even rename your files according to mp3 tags these days!
 
OP
Black Hole

Black Hole

May contain traces of nut
I might have a quick look at Metamorphose (the name is attractive), test it on the same file set, and decide between it and BRU. Parametric replacements will also be useful at times.

The problem with a command line method is having to remember the syntax when only needing it once in a blue moon.

Another option I had forgotten is to see what Directory Opus (my de facto Explorer replacement) has to offer, buried away (I know the new release has a tool, but I'm running behind because upgrades are not cheap).

My normal approach (ultimately flexible) goes like this, because DOS is etched in my memory (but BRU was much faster):
  1. dir > dir.txt
  2. Edit dir.txt using global replacement etc so that lines read 'ren "<old filename>" "<new filename>"'
  3. ren dir.txt namechange.bat
  4. namechange
 
D

Deleted member 473

That is what I used to do, the redirected dir! :cool:

Then use some macros and regular expressions to edit it into a batch file.
 
Last edited by a moderator:

HarveyB

Active Member
Just for info: BRU supports a number of metadata related items for photos and audio (e.g. Date photo taken, etc.). I've not fully explored this but have used date taken to rename photos ...


Sent from my iPad using Tapatalk
 

EEPhil

Number 28
My normal approach (ultimately flexible) goes like this, because DOS is etched in my memory (but BRU was much faster):
  1. dir > dir.txt
  2. Edit dir.txt using global replacement etc so that lines read 'ren "<old filename>" "<new filename>"'
  3. ren dir.txt namechange.bat
  4. namechange
  1. dir/b > namechange.bat
  2. Edit namechange.bat
  3. namechange
dir/b makes life a lot easier. This is similar to the technique I use to convert radio .ts files to .mp2 files using ffmpeg (no CF).
 

fenlander

Active Member
FreeCommander in Windows and Double Commander in Linux both have excellent GUI-based multifile renamers. I've tried most of the others mentioned but these remain my utilities of choice.
 
Top