background operation improvement request

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Personal-CD
Junior Member
Junior Member
Posts: 10
Joined: 2008-02-21, 20:31 UTC
Contact:

Post by *Personal-CD »

OK - I'm sorry, I'm sorry, but I'm going to have to break my promise :( .

I download AHK and it is obviously an extremely powerful tool. However, most of the help file went completely over my head. I played around with it a bit, but got into terrible trouble. I've also not managed to use the TC Multiple re-naming tool to do what I want - although I have a feeling I should be able to.

What I was looking to do was to batch alter a set of file names as follows;

Original Name:

Aundefinedlength - Bundefinedlength.ext

Required Name

Bundefinedlength.ext - Aundefinedlength.ext

The only constants in this expression are the <space>-<space> and the .ext.

I've played around with the TC renamer - which I believe can do this, but I can't work out how to do it. AHK seemed a lot more powerful, but I didn't even understand 80% of the help file, so I've failed to make it work for me.

[Give me a break, I'm 65 - computers weren't even invented when I was born and I'm really struggling here :) ]
Graeme
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Code: Select all

Search for: ^(.+)( - )(.+)(\..+)$
Replace with: $3$2$1$4
RegEx
Icfu
This account is for sale
Personal-CD
Junior Member
Junior Member
Posts: 10
Joined: 2008-02-21, 20:31 UTC
Contact:

Post by *Personal-CD »

icfu

That's positively amazing! I tried for ages to work out how to do this and you come up with it in the space of a few hours.

I have to admit, I thought this was an AHK script at first - needless to say, I failed dismally. Then I realised it was for TC and had it running in no time at all.

Thank you so much, this will save me a big heap of file renaming.

I really, really, promise to go away now and leave you all in peace for a while - but I go leaving my undying gratitude for all the help you guys have given me.
Graeme
User avatar
StickyNomad
Power Member
Power Member
Posts: 1933
Joined: 2004-01-10, 00:15 UTC
Location: Germany

Post by *StickyNomad »

2Personal-CD

You may also have a look at the TC Wiki for additional infos.
User avatar
petermad
Power Member
Power Member
Posts: 16030
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

2Personal-CD
Aundefinedlength - Bundefinedlength.ext

Required Name

Bundefinedlength.ext - Aundefinedlength.ext
If the above is truely what you want, then the parameters shoud be:

Code: Select all

Search for: ^(.+)( - )(.+)(\..+)$
Replace with: $3$4$2$1$4
RegEx
(with an extra $4)

But since you are satiesfied with icfu's solution, I think that it is because icfu applied some error correction to your request - and what you really wanted was:

Bundefinedlength - Aundefinedlength.ext

with only one .ext in it. Is that correct :?:
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Personal-CD
Junior Member
Junior Member
Posts: 10
Joined: 2008-02-21, 20:31 UTC
Contact:

Post by *Personal-CD »

petermad wrote:But since you are satiesfied with icfu's solution, I think that it is because icfu applied some error correction to your request - and what you really wanted was:

Bundefinedlength - Aundefinedlength.ext

with only one .ext in it. Is that correct :?:
Yes - you are right. It was my mistake in the original post.

icfu's solution works very well for me and has saved me a bucketload of time and aggravation in just two days.
Graeme
Post Reply