Peters Flexible RenAmiNg Kit (PFrank) Forum Index Peters Flexible RenAmiNg Kit (PFrank)
Support and Discussion Site for the PFrank File/Folder Renaming Tool (***NEW HOME PAGE*** "http://pfrank.atwebpages.com")
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Help please with file names...

 
Post new topic   Reply to topic    Peters Flexible RenAmiNg Kit (PFrank) Forum Index -> Regular Expressions
View previous topic :: View next topic  
Author Message
RadioGuy



Joined: 09 Apr 2013
Posts: 2

PostPosted: Wed Apr 10, 2013 3:53 am    Post subject: Help please with file names... Reply with quote

Hello,

I have name audio files that I need to reverse the fields on

from Title - Artist.ext

to Artist - Title.ext

And the Example showed this but the extension became part of the first field

Artist.ext - title

How can I fix this...???


I have several file types to convert (WAV, m4a, mp3, etc)





Once I get this solution I can convert stand alone files...



What about batch processing ripped files in sub-dirs...???

From Sub DIR: Artist - Album/track - title.ext

to Artist - Title - Album...???

Thanks
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 448
Location: Canada

PostPosted: Mon Apr 15, 2013 2:34 pm    Post subject: Reply with quote

Place these characters at the start of the search string:

(?E)

Then the extension will not be included in pattern matching.

PFrank will also work on files in subfolders - this has to be enabled via a checkbox found under View -> Options -> Common (Filter)

Peter.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
RadioGuy



Joined: 09 Apr 2013
Posts: 2

PostPosted: Fri Apr 19, 2013 11:50 pm    Post subject: Reply with quote

Will renamed files remain in the directory they originated...I don't see a destination...this is confusing...

UPDATE...I'm making progess...

OK, I did have success renaming individual files that are all in the same directory...so far, so good...but

When it comes to processing files in sub-dirs., such as:

Files/Elvis/greatest hits/1 - hound dog.wav
Files/Elvis/King Creole/3 - King Creole.wav
Files/Carl Perkins/Greatest Hits/6 - Blues Suede Shoes.wav

The sample has a twist...it has a "number space hyphen space song title dot ext"

OK...I went to View > Options and I don't see anything that refers to Subfolders, Common, or Filters...

(1 - hound dog.wav) and it comes out as (hound dog-1.wav)

What I would like to do is

a)...process ALL sub dirs. below "Files"

b)...include artist and album name in the renamed file...

Like THIS (Hound Dog - Elvis - Greatest Hits.wav)

In addition, mixed in these sub dirs. are non audio files (jpg album cover art, etc) that I don't want to change.

Is this possible, or is it too complicated...???

Thanks...
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 448
Location: Canada

PostPosted: Sat Apr 20, 2013 9:48 pm    Post subject: Reply with quote

The destination folder will be the same as the original folder.

To rename as per your examples you need to do the following:

1)
In the Current Folder Panel insert the path to the 'Files' folder
In the Name Filter panel insert: '*.wav'
2)
Under View->Options, choose the 'Parent Folder Name Insertion' option in the left panel.
In the custom format creator of the right panel enter:
'%P2Folder% - %P1Folder%'
3)
In the custom renaming creator of the main window insert the following commands (do not include the single quotes):

Row: 1
Search: '^[0-9]+[ ]*[-][ ]*'
Replace:
Row: 2
Search:
Replace: '*Insert Folder before*Field*1*'
Row: 3
Search:
Replace: '*Title Case (Also Deletes Extra Whitespace) in*All*'
Row: 4
Search: '_i'
Replace: ' - '
Row: 5
Search:
Replace: '*Title Case (Also Deletes Extra Whitespace) in*All*'


There seems to be a minor bug in PFrank when inserting folder names; the result is the insertion of a '_1'. The command of Row 4 is intended to get rid of the '_1' and the command in Row 5 is to clean things up.

Give that a try.

Peter.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Peters Flexible RenAmiNg Kit (PFrank) Forum Index -> Regular Expressions All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © phpBB Group. Hosted by phpBB.BizHat.com


Start Your Own Video Sharing Site

Free Web Hosting | Free Forum Hosting | FlashWebHost.com | Image Hosting | Photo Gallery | FreeMarriage.com

Powered by PhpBBweb.com, setup your forum now!
For Support, visit Forums.BizHat.com