Help with a batch file rename
Posted: 09.04.2014, 13: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!!!
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!!!