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 

how to rename based on data within name of file

 
Post new topic   Reply to topic    Peters Flexible RenAmiNg Kit (PFrank) Forum Index -> General Support
View previous topic :: View next topic  
Author Message
bleph



Joined: 11 Apr 2007
Posts: 6

PostPosted: Thu Nov 27, 2008 3:11 pm    Post subject: how to rename based on data within name of file Reply with quote

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
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 448
Location: Canada

PostPosted: Fri Nov 28, 2008 3:40 am    Post subject: Reply with quote

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
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 -> General Support 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