Is there a way to batch rename the filename?

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

SpritHansi
Posts: 57
Joined: Sun Jun 18, 2006 4:43 pm

Re: Is there a way to batch rename the filename?

Post by SpritHansi »

I wonder if this script can rename my files. I have the following structure:
Folder: Artist - Album (Year) or only
Artist - Album
Files: Track# - Tittel
And I want this filestructure: Artist - Album - Track# - Tittel
Regards
SpritHansi
ZvezdanD
Posts: 3157
Joined: Thu Jun 08, 2006 7:40 pm

Re: Is there a way to batch rename the filename?

Post by ZvezdanD »

SpritHansi wrote:I wonder if this script can rename my files.
I suppose you are asking about RegExp Find & Replace script. Yes, it can rename files, but for such simple example like yours, it could be easier to use the Auto-Organize option. Anyway, if you are still interested, here are settings:
Find what:

Code: Select all

(.+\\)([^\\]+?)\\([^\\]+?\.[^\.\\]+)$
Into: Path
Regular expression 1: checked
Replace with:

Code: Select all

"$1" & SDB.Tools.FileSystem.CorrectFilename(oSongData.ArtistName & " - " & oSongData.AlbumName) & " - $3"
VBScript expression: checked

The Replace with string could be simpler if you don't want to remove the "(Year)" part from the filename:

Code: Select all

"$1$2 - $3"
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
SpritHansi
Posts: 57
Joined: Sun Jun 18, 2006 4:43 pm

Re: Is there a way to batch rename the filename?

Post by SpritHansi »

Hello again!
Thanks for the scripts. Here's another wish;
If albumtag contains CD1, Disc# is 01. CD2=02......
Possible??
Regards
SpritHansi
ZvezdanD
Posts: 3157
Joined: Thu Jun 08, 2006 7:40 pm

Re: Is there a way to batch rename the filename?

Post by ZvezdanD »

SpritHansi wrote:If albumtag contains CD1, Disc# is 01. CD2=02......
Possible??
Yes, it is possible, but you should be more specific. Did you try the "Assign the Disc number from the part of the Album name" preset?
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
SpritHansi
Posts: 57
Joined: Sun Jun 18, 2006 4:43 pm

Re: Is there a way to batch rename the filename?

Post by SpritHansi »

If the album contains two or more discs, I have the disknumber in the filename.
<Artist> - <Album> CD1 - <Track#> - <Tittel>

But I want to tag the disc# (CD1) to 01, not CD1...
Understand???? :-?
Regards
SpritHansi
ZvezdanD
Posts: 3157
Joined: Thu Jun 08, 2006 7:40 pm

Re: Is there a way to batch rename the filename?

Post by ZvezdanD »

No, I don't understand. What you want to modify, path/filename or tags? If you want to modify filename and or folders, how they looks now and how do you want they should look after modification? How currently looks your Album and Disc # tags? Did you try the "Assign the Disc number from the part of the Album name" preset?
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
SpritHansi
Posts: 57
Joined: Sun Jun 18, 2006 4:43 pm

Re: Is there a way to batch rename the filename?

Post by SpritHansi »

I want to modify the disc# tag from
CD1 -> 01
CD2 -> 02
CD3 -> 03
Regards
SpritHansi
ZvezdanD
Posts: 3157
Joined: Thu Jun 08, 2006 7:40 pm

Re: Is there a way to batch rename the filename?

Post by ZvezdanD »

I am sorry, but I cannot read you mind. If you don't have a time to answer to all my questions, I could not help you.

If you want to change only Disc # tags, which allready contains data in form CDx, then simply enter CD as the Find what string and leave the Replace string empty. If you want Disc # tags with leading zero, just choose the "Add the leading zero to the single-digit Track number" preset and change the Into drop-down to Disc #. Understand????
Magic Nodes 4.3.3 / 5.2 RegExp Find & Replace 4.4.9 / 5.2  Invert Selection/Select None 1.5.1  Export/Create Playlists for Child Nodes 4.1.1 / 5.4.1  Expand Child Nodes/Expand All 1.1.2  Event Logger 2.7  Filtered Statistics Report 1.6  Track Redirection & Synchronization 3.4.2  Restore/Synchronize Database 3.1.8 / 4.0.1  Find Currently Playing Track 1.3.2  Queue List 1.2.1  Add to Library on Play 1.0.1  Tree Report for Child Nodes 1.1.1  Update Location of Files in Database 1.4.5 / 2.3  Inherit Child Playlists 1.0.3  Add Currently Playing/Selected Track(s) to Playlist 1.2
SpritHansi
Posts: 57
Joined: Sun Jun 18, 2006 4:43 pm

Re: Is there a way to batch rename the filename?

Post by SpritHansi »

Aah. I'll try that.
Sorry for my bad explanation ZvezdanD. But thanks for the help anyway :)
Regards
SpritHansi
Post Reply