Help with a batch file rename

Discussion, questions and support.
Post Reply
Message
Author
upgraders
Posts: 2
Joined: 09.04.2014, 11:01

Help with a batch file rename

#1 Post by upgraders » 09.04.2014, 11:15

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!!!

joby_toss
Posts: 1346
Joined: 22.07.2009, 19:19
Location: Romania
Contact:

Re: Help with a batch file rename

#2 Post by joby_toss » 09.04.2014, 12:28

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.

upgraders
Posts: 2
Joined: 09.04.2014, 11:01

Re: Help with a batch file rename

#3 Post by upgraders » 09.04.2014, 13:10

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!

joby_toss
Posts: 1346
Joined: 22.07.2009, 19:19
Location: Romania
Contact:

Re: Help with a batch file rename

#4 Post by joby_toss » 09.04.2014, 14:02

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

sirtiman
Posts: 1
Joined: 25.07.2014, 12:11

Re: Help with a batch file rename

#5 Post by sirtiman » 25.07.2014, 12:13

It's really easy to rename Batch rename files. I suggest to try KrojamSoft BatchRenameFiles program.

User avatar
Dreamer
Site Admin
Posts: 3634
Joined: 19.08.2007, 21:40
Location: Slovakia

Re: Help with a batch file rename

#6 Post by Dreamer » 25.07.2014, 23:48

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests