Help with custom multi rename
Moderators: white, Hacker, petermad, Stefan2
Help with custom multi rename
Hello all,
please it is possible with TC and multi rename function to do this?
I have a multiple folders:
1000123456
1000203563
1000985231
...
Each folder have multiple files - for example folder name 1000203563:
PHOTO_980_L233_70201130
PHOTO_980_L233_70201130_2
PHOTO_980_L233_70201130_3
...
What I need, is to rename all files in folders to parent folder name like this:
1000203563
1000203563_2
1000203563_3
1000985231
1000985231_2
1000985231_3
I am fighting with CTRL+M and replace [N] with [P]_[C], but numbering does not work how I need
Thank you very much!
please it is possible with TC and multi rename function to do this?
I have a multiple folders:
1000123456
1000203563
1000985231
...
Each folder have multiple files - for example folder name 1000203563:
PHOTO_980_L233_70201130
PHOTO_980_L233_70201130_2
PHOTO_980_L233_70201130_3
...
What I need, is to rename all files in folders to parent folder name like this:
1000203563
1000203563_2
1000203563_3
1000985231
1000985231_2
1000985231_3
I am fighting with CTRL+M and replace [N] with [P]_[C], but numbering does not work how I need
Thank you very much!
- clifford_cooley
- Junior Member
- Posts: 40
- Joined: 2019-03-05, 06:04 UTC
- Location: USA
Re: Help with custom multi rename
It might help, if we understood exactly why numbering wasn't working for you. You can change how the counter increments the numbers and how many digits are used in the numbers.
License #116347
Re: Help with custom multi rename
Thanks for your reply
Well after my noob skills and tests with CTRL+B, CTRL+A, CTRL+M and [P]_[C] rename is my result:
1000203563_0
1000203563_1
1000203563_2
1000985231_3
1000985231_4
1000985231_5
...
instead of what I need:
1000203563
1000203563_1
1000203563_2
1000985231
1000985231_1
1000985231_2
...
Thank you very much!
Well after my noob skills and tests with CTRL+B, CTRL+A, CTRL+M and [P]_[C] rename is my result:
1000203563_0
1000203563_1
1000203563_2
1000985231_3
1000985231_4
1000985231_5
...
instead of what I need:
1000203563
1000203563_1
1000203563_2
1000985231
1000985231_1
1000985231_2
...
Thank you very much!
- clifford_cooley
- Junior Member
- Posts: 40
- Joined: 2019-03-05, 06:04 UTC
- Location: USA
Re: Help with custom multi rename
Ahh, I see what you are aiming for now. Sadly I don't think the multi-rename tool will do what you are asking for. As far as I am aware the counter will increment all the files from top to bottom. Perhaps someone out there knows of a tool, or add-on that will do what you seek.
I have on many occasion used Excel (aka: spreadsheets) to create a simple command-line script. However this doesn't help unless you know how to format the command-line scripts and how to do so in a spreadsheet. If you are good with coding scripts, you can parse the folders. Instead of creating each rename line in the spreadsheet. Which also requires knowledge of how to create and use spreadsheet formulas.
Anyway it is possible to do what you are wanting. I don't know if you are willing to spend the extra time necessary to get it done the way I am referring.
I have on many occasion used Excel (aka: spreadsheets) to create a simple command-line script. However this doesn't help unless you know how to format the command-line scripts and how to do so in a spreadsheet. If you are good with coding scripts, you can parse the folders. Instead of creating each rename line in the spreadsheet. Which also requires knowledge of how to create and use spreadsheet formulas.
Anyway it is possible to do what you are wanting. I don't know if you are willing to spend the extra time necessary to get it done the way I am referring.
License #116347
Re: Help with custom multi rename
You don't need a counter, it's already included in filenames. Try with [P][N22-] or similar.
Andrzej P. Wozniak
Polish subforum moderator
Polish subforum moderator
Re: Help with custom multi rename
Actually for filenames like:Try with [P][N22-] or similar.
PHOTO_980_L233_70201130
PHOTO_980_L233_70201130_2
it should be: [P][N24-]
You don't have to sit and count characters - just use the button marked: "[N#_#] Range" and select the last two characters
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
- clifford_cooley
- Junior Member
- Posts: 40
- Joined: 2019-03-05, 06:04 UTC
- Location: USA
Re: Help with custom multi rename
That is assuming the length of the name before the underscore is the same for all files.
License #116347
Re: Help with custom multi rename
Try these settings:
Mask: [P]_[C]
Extension: [E]
Search for: _1$
Replace with: <Clear>
☐ ^ ☐ 1x ☐ [E] ☑ RegEx ☐ Subst
Counter: start 1, step 1, digits 1
Mask: [P]_[C]
Extension: [E]
Search for: _1$
Replace with: <Clear>
☐ ^ ☐ 1x ☐ [E] ☑ RegEx ☐ Subst
Counter: start 1, step 1, digits 1