Page 1 of 1

Help with a batch file rename

Posted: 09.04.2014, 11:15
by upgraders
I have a 4 deep Folder structure with about 40,000 files

Root Folder
Folder 1
Folder 1A
Folder 1AB
Folder 2
Folder 2A
Folder 2AB
Folder 3
Folder 3A
Folder 3AB

Inside this structure are files that are named respectively like this:

103.06.00_9.JPG
103.06.00_10.JPG
103.06.00_119.JPG

###.##.##_#.jpg or ###.##.## _##.jpg or ###.##.## _###.jpg

The # preceding the underscore are in this format ###.##.##

The number after the underscore in each folder starts with 1 and continues the count for all of the files. I don't think any go over 3 digits.

What I need to do is delete the underscore and the following numbers for each file.

So the resulting example above would look like this:

103.06.00.JPG
103.06.00.JPG
103.06.00.JPG

This is the first time using Free Commander, so I would be eternally grateful if someone could give me a step-by-step to help me accomplish this task or tell me if it is possible.

I know that when the Multi rename loads I can select [n9] in the Pattern (File n) setting and [e] in the File Extension and the rename will work, as it will count the first 9 characters (what I want) but the problem is how do I batch ALL the files without opening ever single folder (There are 100's of folders) and running this query I can only run it once as if it fails I will have to search for all the files with the underscore still there.


Thanks!!!

Re: Help with a batch file rename

Posted: 09.04.2014, 12:28
by joby_toss
Go to the Root Folder and hit Ctrl+B. Then apply Multi rename to all at once.

But in your example you have 3 resulting files with the same name. I hope they're not in the same folder.

Re: Help with a batch file rename

Posted: 09.04.2014, 13:10
by upgraders
Yes my example was wrong as as copied and pasted just to illustrate the file name format. I am however curious as to what WOULD happen if there was a situation where the renamed files would be the same in the same folder. There are the same names but in different folders, thanks for the help!

Re: Help with a batch file rename

Posted: 09.04.2014, 14:02
by joby_toss
upgraders wrote:I am however curious as to what WOULD happen if there was a situation where the renamed files would be the same in the same folder.
Simple: you'll get a warning message and they won't be renamed.

Image

Re: Help with a batch file rename

Posted: 25.07.2014, 12:13
by sirtiman
It's really easy to rename Batch rename files. I suggest to try KrojamSoft BatchRenameFiles program.

Re: Help with a batch file rename

Posted: 25.07.2014, 23:48
by Dreamer
upgraders wrote:Yes my example was wrong as as copied and pasted just to illustrate the file name format.
Try to describe exactly what you need, few real examples before/after.