View previous topic :: View next topic |
Author |
Message |
bleph
Joined: 11 Apr 2007 Posts: 6
|
Posted: Thu Nov 27, 2008 3:11 pm Post subject: how to rename based on data within name of file |
|
|
i have hundreds of mp4 clips with a format SIMILAR to
Movie_21_(scene'20031129 07.12.30).mp4
I am trying to create output to extract 20031129
In each instance, it appears the file name as a fixed number of leading characters before the ' appears
the 20031129 is the date
I would like the date to appear in date format of 11-29-2003, if possible.....
so the output for the above would change from
Movie_21_(scene'20031129 07.12.30).mp4 to
11-29-2003
HOWEVER..there may be duplicate files with the same date, so the default function seems to append the .mp4 file.which would render the file not playable........i need it to apear as
11-29-2003-1.mp4 etc..if there WILL be duplicates
Im now using the following which works EXCEPT for the duplicate issue
line 1
(?x)^(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.)(.).*$
\17\18\19\20-\21\22-\23\24
line 2
(?x)(.*?)[ ]*?[-]+[ ]*?(.*)$ # start of swap 2 fields
\2 - \1
line 3
(?x)[ ]*[-][ ]* # end of swap 2 fields
-
line 4
(?x)(.*) # Insert the text: '.mp4' to the right
\1.mp4
result renames
Movie_21_(scene'20031129 07.12.30).mp4
to
11-29-2003.mp4
again..........if there WILL BE a duplicate -- during the rename-- i need to append the renamed file name after the 4 digit year
thank you
mark[[/img][url][/url] |
|
Back to top |
|
 |
admin Site Admin
Joined: 09 Mar 2007 Posts: 448 Location: Canada
|
Posted: Fri Nov 28, 2008 3:40 am Post subject: |
|
|
Hi Mark,
There is an option to configure where to place the duplicate-resolver string.
Go to the options window (Press Alt-O from any window). Select 'Rename Scan' from the Option tree. On the right-hand side you will see an option to position the Resolver string; Choose 'After' and 'Prefix'
Then run the scan again.
Hope that helps!
Peter. |
|
Back to top |
|
 |
|