Peters Flexible RenAmiNg Kit (PFrank) Forum Index Peters Flexible RenAmiNg Kit (PFrank)
Support and Discussion Site for the PFrank File/Folder Renaming Tool (http://www3.telus.net/pfrank)
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Shorten 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
pengtzu



Joined: 23 Oct 2010
Posts: 3

PostPosted: Sat Oct 23, 2010 1:03 am    Post subject: Shorten File Names Reply with quote

I'm trying to re-import my iTunes library after a crash. I'm getting an error that one of the files names is invalid or too long (weird, since it wasn't an issue before the crash.) I suspect this is a very mundane request, but I can't seem to figure out how to accomplish this. I want to shorten every single filename to somewhere around 50 characters, by simply chopping off anything to the right of that point. I suspect that would give me unique filenames, but if there were any duplicate filenames, I hope it would give me some option other than phailing or overwriting files. Any suggestions? TIA!
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 446
Location: Canada

PostPosted: Sat Oct 23, 2010 7:02 am    Post subject: Reply with quote

Hi,

On the main window, there is a pre-defined regex pull-down list. In it there is an entry for deleting the first 4 characters of a name. insert it in the custom renaming creator and then change the 4 to 50.

The top menu of the main window has a View entry. Pull it down and select 'Options'. The options window will appear. On the left side select 'Rename Scan'. The right side will then show an option at the top for customizing how you want to handle duplicates.

Hope that helps.

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



Joined: 23 Oct 2010
Posts: 3

PostPosted: Sun Oct 24, 2010 8:04 pm    Post subject: Reply with quote

Hello and thank you! Unfortunately, if I understand correctly, your suggestion deletes the first ## of characters in the title. I want to delete any characters from the ed, in other words, and characters to the right of the 50th one. Let me know if I misunderstood. Or, any other suggestions?
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 446
Location: Canada

PostPosted: Mon Oct 25, 2010 12:01 am    Post subject: Reply with quote

Sorry - I should have referred you to the entry: 'Keep first 4 characters in'
Insert it in the custom renaming creator and then change the 4 to 50.

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



Joined: 23 Oct 2010
Posts: 3

PostPosted: Wed Oct 27, 2010 11:45 pm    Post subject: Thanks! Reply with quote

Sounds dead on. I want to backup the folder first but I'll report back on how it works. Thanks!
Back to top
View user's profile Send private message
alankempster



Joined: 24 Feb 2012
Posts: 2
Location: United Kingdom

PostPosted: Fri Feb 24, 2012 11:01 am    Post subject: Reply with quote

I tried this, but it chopped off the file extension as well. Then I tried changing the start of the expression from (?x) to (?E) and it stopped making any changes at all. Any ideas?
Back to top
View user's profile Send private message
alankempster



Joined: 24 Feb 2012
Posts: 2
Location: United Kingdom

PostPosted: Fri Feb 24, 2012 11:05 am    Post subject: Reply with quote

Just found the answer myself - the expression needs to start with (?Ex).
Back to top
View user's profile Send private message
admin
Site Admin


Joined: 09 Mar 2007
Posts: 446
Location: Canada

PostPosted: Fri Feb 24, 2012 3:50 pm    Post subject: Reply with quote

Good to hear that you were able to resolve things.

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