Multi Rename Tool: TRUNCATE Remove Delete Drop characters

English support forum

Moderators: Hacker, petermad, Stefan2, white

wrightwe
Junior Member
Junior Member
Posts: 9
Joined: 2005-02-03, 03:35 UTC

Multi Rename Tool: TRUNCATE Remove Delete Drop characters

Post by *wrightwe »

How can I truncate the first n characters of a group of filenames?

For example, I may have a directory of files like this:
01 - filename1.txt
02 - filename2.txt
03 - filename3.txt
04 - filename4.txt


I want to truncate the first 5 characters so they will come out like this:

filename1.txt
filename2.txt
filename3.txt
filename4.txt


Thanks in advance!
User avatar
majkinetor
Senior Member
Senior Member
Posts: 369
Joined: 2005-11-20, 10:36 UTC
Location: Belgrade, Serbia
Contact:

Post by *majkinetor »

This case: [N6-]
General [Nx-] (removes x chars)
Last edited by majkinetor on 2006-01-14, 17:56 UTC, edited 1 time in total.
We are not doing this just for the money.
We are doing it for sh*t load of money.
 
 
r-moth.com
r-moth.deviantart.com
wrightwe
Junior Member
Junior Member
Posts: 9
Joined: 2005-02-03, 03:35 UTC

Post by *wrightwe »

That works perfectly, thanks very much! :)
User avatar
chandragor
Member
Member
Posts: 128
Joined: 2005-06-01, 10:10 UTC
Location: Italy

Post by *chandragor »

majkinetor wrote: General [Nx-] (removes x chars)
Nope. It removes x-1 chars. For example:

[N2-]

removes only the first char so that

Afilename.txt

becomes

filename.txt

and so on....


Call me Mr. Nitpicking if you want... :lol:
Happy owner of license #12422 since 1997
User avatar
majkinetor
Senior Member
Senior Member
Posts: 369
Joined: 2005-11-20, 10:36 UTC
Location: Belgrade, Serbia
Contact:

Post by *majkinetor »

my mistake....
We are not doing this just for the money.
We are doing it for sh*t load of money.
 
 
r-moth.com
r-moth.deviantart.com
wrightwe
Junior Member
Junior Member
Posts: 9
Joined: 2005-02-03, 03:35 UTC

Post by *wrightwe »

You're right. Man, I need to get some new glasses. I love this Multi Rename Tool.

May I ask, how did you figure out how to do this? I've been using Total Commander since 1996 and I love finding advanced techniques like this.
User avatar
Gral
Power Member
Power Member
Posts: 1609
Joined: 2005-01-26, 15:12 UTC

Post by *Gral »

Maybe HELP file ? :mrgreen:
User avatar
petermad
Power Member
Power Member
Posts: 16141
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

Maybe HELP file
Yep - See: http://madsenworld.dk/tcmd/n2-.png
License #524 (1994)
Danish Total Commander Translator
TC 11.55rc4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1393a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
wrightwe
Junior Member
Junior Member
Posts: 9
Joined: 2005-02-03, 03:35 UTC

Post by *wrightwe »

Gral wrote:Maybe HELP file ? :mrgreen:
Very funny! :) Actually, I really do like the help file that comes with TC, Christian did a wonderful job on that. The only thing that's missing are little techniques like in this thread.
wrightwe
Junior Member
Junior Member
Posts: 9
Joined: 2005-02-03, 03:35 UTC

Post by *wrightwe »

petermad wrote:
Maybe HELP file
Yep - See: http://madsenworld.dk/tcmd/n2-.png
I just did a search and you're right... this was in the regular help. And I thought I'd seen it all. Well, thanks again for helping me out, I do appreciate it. :)
User avatar
majkinetor
Senior Member
Senior Member
Posts: 369
Joined: 2005-11-20, 10:36 UTC
Location: Belgrade, Serbia
Contact:

Post by *majkinetor »

Maybe "How to use Help file" ? :mrgreen:
We are not doing this just for the money.
We are doing it for sh*t load of money.
 
 
r-moth.com
r-moth.deviantart.com
wrightwe
Junior Member
Junior Member
Posts: 9
Joined: 2005-02-03, 03:35 UTC

Post by *wrightwe »

majkinetor wrote:Maybe "How to use Help file" ? :mrgreen:
Everyone's a comedian. :)
vo
Junior Member
Junior Member
Posts: 47
Joined: 2012-08-16, 01:28 UTC

Post by *vo »

I'm practicing with multi rename, but can't figure out the following:

If these are the files:
  • 01.Fuiam Catha_01_The Earth Is Our Mother.Mp3
    02.Fuiam Catha_02_Terra Ist.Mp3
    03.Fuiam Catha_03_Take Back The Land.Mp3
    04.Fuiam Catha_04_Religious Con.Mp3
    05.Fuiam Catha_05_Dont Burn The Witch.Mp3
    06.Fuiam Catha_06_The Right To Choose.Mp3
    07.Fuiam Catha_07_f-word Everybody Who Voted Tory.Mp3
    08.Fuiam Catha_08_Sios Leis A Ghniomhachas Mhoir.Mp3
    09.Fuiam Catha_09_Glf.Mp3
    10.Fuiam Catha_10_Willie Mcrae.Mp3
    11.Fuiam Catha_11_Deathcafe.Mp3
    12.Fuiam Catha_12_Your Beer Is sh** And Your Money Stinks.Mp3
    13.Fuiam Catha_13_Sell Out.Mp3
    14.Fuiam Catha_14_No More Roads.Mp3
    15.Fuiam Catha_15_Hunt The Rich.Mp3
    16.Fuiam Catha_16_Mindrot.Mp3
    17.Fuiam Catha_17_Anti Police Aggro.Mp3
and I want to take out part _number_ and replace with space, actually <Clear>, how do I do that?

Thanks
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1052
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

RegEx on
Search:

Code: Select all

_\d\d_
Replace: space or space dash space
vo
Junior Member
Junior Member
Posts: 47
Joined: 2012-08-16, 01:28 UTC

Post by *vo »

Very good, ZoSTeR. It works. Thanks very much.

Could you explain the logic behind this? Why \d\d ?

...and is there some other location where I could find these different codes and logic behind them? I couldn't find this in the help file.

Thanks
Post Reply