Multi-rename tool: reorder my files

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
GammelBert
Member
Member
Posts: 109
Joined: 2007-02-21, 18:42 UTC
Location: Germany

Multi-rename tool: reorder my files

Post by *GammelBert »

I have music files of different radio shows that I'd like to have reordered. When I listen to them the shows should take turns.
For example I have files like these:

Code: Select all

ABGT\ABGT233_LiveShow260517.m4a
ABGT\ABGT234_LiveShow020617.m4a
ABGT\ABGT235_LiveShow090617.m4a
...
ASOT\ASOT_Ep_815.mp3
ASOT\ASOT_Ep_816.mp3
...
GDJB\GDJB_Jun_15_2017_Markus_Schulz_and_Gai_Barone.mp3
GDJB\GDJB_Jun_22_2017_Markus_Schulz_2_Hour_Mix.mp3
GDJB\GDJB_Jun_29_2017_Markus_Schulz_and_Talla_2XLC.mp3
...
I'd like to have them renamed like this

Code: Select all

01 ABGT233_LiveShow260517.m4a
02 ASOT_Ep_815.mp3
03 GDJB_Jun_15_2017_Markus_Schulz_and_Gai_Barone.mp3
04 ABGT234_LiveShow020617.m4a
05 ASOT_Ep_816.mp3
06 GDJB_Jun_22_2017_Markus_Schulz_2_Hour_Mix.mp3
07 ABGT235_LiveShow090617.m4a
08 GDJB_Jun_29_2017_Markus_Schulz_and_Talla_2XLC.mp3
...
The order within a show must be kept
Is this possible without manually sorting them in the Multi-rename tool?
User avatar
Dalai
Power Member
Power Member
Posts: 9388
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

You should find some criterion you can use to sort the files, maybe date or something. Otherwise you'd have to sort them manually, because TC can't know which file should get which number.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
Stefan2
Power Member
Power Member
Posts: 4157
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Multi-rename tool: reorder my files

Post by *Stefan2 »

GammelBert wrote: I'd like to have them renamed like this

The order within a show must be kept

What is your wish? Spoken in normal English words?

Something like

Take the first file from first      folder and add 01
Take the first file from second folder and add 02
Take the first file from third     folder and add 03

Then second file from first,      add 04
Then second file from second, add 05
Then second file from third,     add 06

Then third   file from first, add 07 (4+3=7)
Then fourth file from first, add 10 (7+3=10)
Then fifth    file from first, add 13 (10+3=13)


?



So know how many folder you have , here 3,
then rename each folder separately the files in counter steps of 3

First folder     : 01 ... 04 ... 07 >>> MUT: [C1+3:2] [N]
Second folder : 02 ... 05 ... 08 >>> MUT: [C2+3:2] [N]
Third folder    : 03 ... 06 ... 09 >>> MUT: [C3+3:2] [N]
....

MUT [C] means: start counter + steps : amount of digits (zero padding)




I have modified your post a little bit (the names) to make the algorithms a little bit more clear :
GammelBert wrote:I have music files of different radio shows that I'd like to have reordered.
When I listen to them the shows should take turns.
For example I have files like these:

Code: Select all

FiRsT\FiRsT233_LiveShow260517.m4a
FiRsT\FiRsT234_LiveShow020617.m4a
FiRsT\FiRsT235_LiveShow090617.m4a
...
SeCOND\SeCOND_Ep_815.mp3
SeCOND\SeCOND_Ep_816.mp3
...
ThirD\ThirD_Jun_15_2017_Markus_Schulz_and_Gai_Barone.mp3
ThirD\ThirD_Jun_22_2017_Markus_Schulz_2_Hour_Mix.mp3
ThirD\ThirD_Jun_29_2017_Markus_Schulz_and_Talla_2XLC.mp3
...
I'd like to have them renamed like this

Code: Select all

01 FiRsT233_LiveShow260517.m4a
02 SeCOND_Ep_815.mp3
03 ThirD_Jun_15_2017_Markus_Schulz_and_Gai_Barone.mp3
04 FiRsT234_LiveShow020617.m4a
05 SeCOND_Ep_816.mp3
06 ThirD_Jun_22_2017_Markus_Schulz_2_Hour_Mix.mp3
07 FiRsT235_LiveShow090617.m4a
08 ThirD_Jun_29_2017_Markus_Schulz_and_Talla_2XLC.mp3
...
The order within a show must be kept
Is this possible without manually sorting them in the Multi-rename tool?




 
User avatar
GammelBert
Member
Member
Posts: 109
Joined: 2007-02-21, 18:42 UTC
Location: Germany

Post by *GammelBert »

Stefan2, you guessed right about what I want. Thank you!
User avatar
Stefan2
Power Member
Power Member
Posts: 4157
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

GammelBert wrote:Stefan2, you guessed right about what I want. Thank you!
You are welcome.


And, did it work? Problem solved?





 
User avatar
GammelBert
Member
Member
Posts: 109
Joined: 2007-02-21, 18:42 UTC
Location: Germany

Post by *GammelBert »

Yes, problem solved. Your method works but it requires me to go into each folder manually. I might be too lazy for that. Maybe I'm going to look for another file renaming software or write a script if nothing helps.
Your help was very much appreciated.
User avatar
Stefan2
Power Member
Power Member
Posts: 4157
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

Thanks for the feedback.

Me think there is no renamer to do that, since that is a very special use case.

We can do that by a PoSh script:

- select all folders
- press a button to call script
- script will
--- count amount of selected folders
--- go into each folder
--- rename like the MUT [C] above
$FolderIndex+Step($FolderAmount):$WantedPadding



But since you can do that on your own I can lay back :D
(maybe I will write a PascalScript for that, we will see)


(would be nice if you could share your script for others here)



 
User avatar
Dalai
Power Member
Power Member
Posts: 9388
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

I don't think any renamer can do that. How should it know which file should get which number if you don't tell it that? That's why I said you should find something you can base the sort order of the files on. If you have that, use the branch view (Ctrl+B), mark the files and open MRT to insert the counter into the file name. The hardest part is to find the criterion, anything after that is really simple.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Post Reply