renaming

English support forum

Moderators: white, Hacker, petermad, Stefan2

snaggy
Junior Member
Junior Member
Posts: 43
Joined: 2006-04-25, 07:09 UTC

renaming

Post by *snaggy »

I want to add a "bkp_" string to many files at once

In the target path I wrote: bkp_*.*
but it doesn't work (actually it worked once but I don't remember what I did differently)
I have the first 4 characters overwritter by my string:

devil.doc --> bkp_l.doc

why?
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3300
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

try STRG+M and then press F1 :)

PS: next time pls read the Help, use the Search and read the Wiki.
Hoecker sie sind raus!
snaggy
Junior Member
Junior Member
Posts: 43
Joined: 2006-04-25, 07:09 UTC

Post by *snaggy »

I know how to use the multi file renamer, but I was talking about something else.

I'm talking about the Copy dialog (F5), and asking wether it's possible to do such autorenaming (add the bkp_ string at the beginning of the filename)

by the way, this works

*.*.bkp
devil.doc --> devil.doc.bkp

but I'd like it before devil (bkp_devil.doc)

bye

PS: I'm not using the autorenaming tool because I'm doing backup
User avatar
XPEHOPE3KA
Power Member
Power Member
Posts: 854
Joined: 2006-03-03, 18:23 UTC
Location: Saint-Petersburg, Russia

Post by *XPEHOPE3KA »

Strange & bad. I consider this as bug, because the first * has always meant file name, and the other * has always meant file ext. What snaggy tried to do was very intuitive and hence needed to implement.
Temporary you can copy files and then multirename them (you knew it, didn't you :wink:)
F6, Enter, Tab, F6, Enter, Tab, F6, Enter, Tab... - I like to move IT, move IT!..
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Re: renaming

Post by *Sheepdog »

snaggy wrote:I want to add a "bkp_" string to many files at once

In the target path I wrote: bkp_*.*
but it doesn't work (actually it worked once but I don't remember what I did differently)
I have the first 4 characters overwritter by my string:

devil.doc --> bkp_l.doc

why?
The rename command is taken a bit strange with the asterisk wildcard:
bkp_*.* does not add the bkp_ to all existing names but replaces the first letters by the rename-string.
But this is exactly the way DOS acts in this case.


As Sir_SiLvA mentioned , you may use the Multi Renmae tool (actually to open with ctrl+m) to rename multiple files. It is a very mighty tool that allows you a preview and even an undo if the rename had not the desired result.


2snaggy
BTW although reading Help and Wiki and using the Search is always a good idea feel free to ask here again.

If someone does not like to answer to you he's not obliged to.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

This topic has been already discussed here

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
snaggy
Junior Member
Junior Member
Posts: 43
Joined: 2006-04-25, 07:09 UTC

Post by *snaggy »

I see, so it's not a real bug, just a odd behaviour inherited from dos syntax...

I think most of us don't use it in this way, though..

And I love the idea of implementing the MRT syntax in the F6\F5 dialogs!
snaggy
Junior Member
Junior Member
Posts: 43
Joined: 2006-04-25, 07:09 UTC

Post by *snaggy »

I've written some ahk code to do it (the renaming - backup).
It uses the mrt of course, but does it automatically...
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

MRT should be implemented everywhere.

I very much need some mechanism to quck recall saved MRT preset on file selection. Some procedure like this.

1. I select files
2. I click MMB on selection. New popup with list of presets emerge.
3. I select preset -> files are renamed.

Also on Copy/Move there should be combo with preset list also, or even button to expand edit field which you can use to write MRT transoformation.

MRT is very powerful tool, and I use it every day. It should be quickly accessible from all context that can include this kind of transformation (selection, coping and moving for now)
Habemus majkam!
User avatar
Hacker
Moderator
Moderator
Posts: 13071
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

I very much need some mechanism to quck recall saved MRT preset on file selection. Some procedure like this.

1. I select files
2. I click MMB on selection. New popup with list of presets emerge.
3. I select preset -> files are renamed.
Great idea. Support++. IMO you should start a new thread with this feature request.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
snaggy
Junior Member
Junior Member
Posts: 43
Joined: 2006-04-25, 07:09 UTC

Post by *snaggy »

Yes, I agree!

By the way, the presets are stored in the .ini file, aren't they? It shouldn't be difficult to create a scripts to accomplish the first task you requested..

But this is something to implement in TC itself of course!
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

Yes, snaggy, I realised that while I was writing that.
Of course I can write AHK to parse ini, display nice little menu, and call MRT and fill the edit and press OK and exit the dialog.

Don't you think this is too much job in AHK, it will also present screen glitches.

On the other hand, since MRT is probably implemented as unit for itself, making this functionality in TC would requare several hours of coding.
Habemus majkam!
snaggy
Junior Member
Junior Member
Posts: 43
Joined: 2006-04-25, 07:09 UTC

Post by *snaggy »

Yes, I've just realised it's quite annoying such a task in ahk...
I don't know how TC is programmed, still it doesn't seem to me that hard to implement, it should be just calling the mrt funcion from the other dialogs (Yes it's not so simple but there's nothing new to write, just some calling and gui building)
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

It is very simple... beleive me.
Habemus majkam!
snaggy
Junior Member
Junior Member
Posts: 43
Joined: 2006-04-25, 07:09 UTC

Post by *snaggy »

majkinetor ! wrote:making this functionality in TC would requare several hours of coding.
Maybe I didn't understand you well, but didn't you say it was hard to do here?
Post Reply