#1 2010-10-15 08:18

JohnnySH
Member
Registered: 2007-08-31
Posts: 11

Folder name in the rename of file name

Hello

I have several stages of rename to do

My files start off like this

SF275-01 - River of Dreams - Billy Joel.mp3
SF275-01 - River of Dreams - Billy Joel.cdg

And they are stored in a folder called SF275

I would like some help please to create a set of rules to rename the files as below


Billy Joel - River of Dreams (SF275).mp3
Billy Joel - River of Dreams (SF275).cdg

The first rule should strip the SF275-01  from the first part of the name

The 2nd rule should swap title and artist

The 3rd rule should at the end of the title add (FOLDER NAME)
i.e. the name of the folder the files are storred in

Any help in this set of rules would be very much appreciated

Thank you

Offline

#2 2010-10-15 16:23

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: Folder name in the rename of file name

Hi Johnny,

JohnnySH wrote:

The first rule should strip the SF275-01  from the first part of the name

The 2nd rule should swap title and artist

The 3rd rule should at the end of the title add (FOLDER NAME)

Try this:

Johnny> The first rule should strip the SF275-01  from the first part of the name
1) Rearrange: Split by delimiters "- ", New pattern "$2 - $3" (skip extension)

Johnny> The 2nd rule should swap title and artist
2) Rearrange: Split by delimiters " - ", New pattern "$2 - $1" (skip extension)

Johnny> The 3rd rule should at the end of the title add (FOLDER NAME)
3) Insert: Insert Meta Tag "(:File_FolderName:)" as Suffix (skip extension)


- - -

There are several ways to do this:

FROM:
SF275-01 - River of Dreams - Billy Joel.mp3
SF275-01 - River of Dreams - Billy Joel.cdg
TO:
River of Dreams - Billy Joel.mp3
River of Dreams - Billy Joel.cdg
DO:
1) Rearrange: Split by delimiters "- ", New pattern "$2 - $3" (skip extension)
or
1) Delete: Delete from Position 1 until Count reaches 11 (skip extension)
or
1) RegEx: Replace expression ".+? - (.+)" with "$1" (skip extension)


FROM:
River of Dreams - Billy Joel.mp3
River of Dreams - Billy Joel.cdg
TO:
Billy Joel - River of Dreams.mp3
Billy Joel - River of Dreams.cdg
DO:
2) Rearrange: Split by delimiters " - ", New pattern "$2 - $1" (skip extension)
or
2) RegEx: Replace expression "(.+) - (.+)" with "$2 - $1" (skip extension)


FROM:
Billy Joel - River of Dreams.mp3
Billy Joel - River of Dreams.cdg
TO
Billy Joel - River of Dreams (foldername).mp3
Billy Joel - River of Dreams (foldername).cdg
DO:
3) Insert: Insert "(:File_FolderName:)" as Suffix (skip extension)



HTH? big_smile

.


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#3 2010-10-15 22:34

JohnnySH
Member
Registered: 2007-08-31
Posts: 11

Re: Folder name in the rename of file name

Thank you so much

this worked fine, Thanks Again

Offline

Board footer

Powered by FluxBB