Total Commander Forum Index Total Commander
Forum - Public Discussion and Support
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Multi rename tool - help with advanced functions

 
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander (English) Printable version
View previous topic :: View next topic  
Author Message
Corey
Junior Member
Junior Member


Joined: 13 Jun 2012
Posts: 3

PostPosted: Wed Jun 13, 2012 2:21 pm    Post subject: Multi rename tool - help with advanced functions Reply with quote

Example of what I want, these are the files:
Code:
01 The Balkans.mp3
02 Your Majesty.mp3
03 I'll Hae To Cut My Way To Your Heart.mp3
04 If A Stranger Calls You.mp3
05 Joy.mp3


I want to rename them to

Code:
01 - The Balkans.mp3
02 - Your Majesty.mp3
03 - I'll Hae To Cut My Way To Your Heart.mp3
04 - If A Stranger Calls You.mp3
05 - Joy.mp3


I tried with regexp, but don't know how it functions inside TC : / any help?
Back to top
View user's profile Send private message
mhe
Junior Member
Junior Member


Joined: 16 Feb 2003
Posts: 60

PostPosted: Wed Jun 13, 2012 2:52 pm    Post subject: Reply with quote

Code:
[N1-2] - [N4-]


Enter that as rename mask for the file name. Might look like gibberish, but it's quite logical if you start to fiddle with the range button i think you'll get how it works.
Back to top
View user's profile Send private message
Corey
Junior Member
Junior Member


Joined: 13 Jun 2012
Posts: 3

PostPosted: Wed Jun 13, 2012 3:39 pm    Post subject: Reply with quote

Thank you. I made huge mistake by trying to work it through "Search & Replace" dialog, not "Rename mask". So, those placeholders are only for mask dialog, for S&R is RegEx? I tried via RegEx in "Search & Replace", but coulnd't do it, is there a way? I'm asking out of curiosity, to see what power I have with this.
Back to top
View user's profile Send private message
mhe
Junior Member
Junior Member


Joined: 16 Feb 2003
Posts: 60

PostPosted: Wed Jun 13, 2012 4:30 pm    Post subject: Reply with quote

Corey wrote:
Thank you. I made huge mistake by trying to work it through "Search & Replace" dialog, not "Rename mask". So, those placeholders are only for mask dialog, for S&R is RegEx? I tried via RegEx in "Search & Replace", but coulnd't do it, is there a way? I'm asking out of curiosity, to see what power I have with this.


I'm sure it can be done with regex and search and replace as well, but my regex skills are nonexistent Embarassed
Match first space, replace by " - "
Sometime like that probably.
Back to top
View user's profile Send private message
solid
Senior Member
Senior Member


Joined: 09 Aug 2004
Posts: 427

PostPosted: Thu Jun 14, 2012 7:23 am    Post subject: Reply with quote

With regex
Search for
Code:
^\d\d\s

Replace with
Code:
$0-
Back to top
View user's profile Send private message Send e-mail
Corey
Junior Member
Junior Member


Joined: 13 Jun 2012
Posts: 3

PostPosted: Fri Jun 15, 2012 5:01 am    Post subject: Reply with quote

Thank you solid for clarification.

pozdrav iz Srbije ; )
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Total Commander Forum Index -> Total Commander (English) All times are GMT - 6 Hours
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


Impressum: This site is maintained by Ghisler Software GmbH

Using phpBB © 2001-2005 phpBB Group