Page 5 of 5

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

Posted: Mon Jun 01, 2009 6:00 pm
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

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

Posted: Tue Jun 02, 2009 1:36 am
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"

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

Posted: Sun Jun 14, 2009 12:13 am
by SpritHansi
Hello again!
Thanks for the scripts. Here's another wish;
If albumtag contains CD1, Disc# is 01. CD2=02......
Possible??

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

Posted: Sun Jun 14, 2009 2:12 am
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?

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

Posted: Sun Jun 14, 2009 2:20 am
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???? :-?

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

Posted: Sun Jun 14, 2009 2:28 am
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?

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

Posted: Sun Jun 14, 2009 2:37 am
by SpritHansi
I want to modify the disc# tag from
CD1 -> 01
CD2 -> 02
CD3 -> 03

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

Posted: Sun Jun 14, 2009 2:47 am
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????

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

Posted: Sun Jun 14, 2009 3:08 am
by SpritHansi
Aah. I'll try that.
Sorry for my bad explanation ZvezdanD. But thanks for the help anyway :)