View previous topic :: View next topic |
Author |
Message |
RadioGuy
Joined: 09 Apr 2013 Posts: 2
|
Posted: Wed Apr 10, 2013 3:53 am Post subject: Help please with file names... |
|
|
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 |
|
 |
admin Site Admin
Joined: 09 Mar 2007 Posts: 448 Location: Canada
|
Posted: Mon Apr 15, 2013 2:34 pm Post subject: |
|
|
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 |
|
 |
RadioGuy
Joined: 09 Apr 2013 Posts: 2
|
Posted: Fri Apr 19, 2013 11:50 pm Post subject: |
|
|
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 |
|
 |
admin Site Admin
Joined: 09 Mar 2007 Posts: 448 Location: Canada
|
Posted: Sat Apr 20, 2013 9:48 pm Post subject: |
|
|
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 |
|
 |
|