tedious task

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
sybariten
Junior Member
Junior Member
Posts: 79
Joined: 2003-05-29, 17:31 UTC

tedious task

Post by *sybariten »

Hi all, returning once again with a call for help
I have lots of files with identical names, stored in separate dirs:
folder01/speech.mp3
folder02/speech.mp3
folder03/speech.mp3
Well, you get the picture. I would like to store all these files in the same dir, but then ofcourse they would have to be renamed, in order to not collide. I guess the most natural thing would be to incorporate the foldername in the filename, something like this:
folder01_speech.mp3
folder02_speech.mp3
folder03_speech.mp3
etc.
Its a typical thing to solve with bash, but is there any way i could do this in TC so i dont have to move the stuff onto *nix?

cheers!
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

Multi-Rename Tool (Ctrl_T) - wouldn't help you?
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
jhegener
Junior Member
Junior Member
Posts: 5
Joined: 2003-02-21, 03:43 UTC

Post by *jhegener »

The Multi-Rename Tool rocks!

:twisted:
sybariten
Junior Member
Junior Member
Posts: 79
Joined: 2003-05-29, 17:31 UTC

Post by *sybariten »

djk wrote:Multi-Rename Tool (Ctrl_T) - wouldn't help you?
The multirenametool does, like jhegener points out above, rock, but i doubt that it could do this task for me. I need to recursively rename each file... seems like the MRT only works on what is currently selected in the lister.

peace
User avatar
fabiochelly
Power Member
Power Member
Posts: 603
Joined: 2003-02-05, 12:03 UTC
Location: Rambouillet, France

Post by *fabiochelly »

You can make a search, add to listbox then use the MRT.
You can also use the branch view (CTRL+B) them use the MRT.
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
User avatar
djk
Power Member
Power Member
Posts: 1651
Joined: 2003-03-17, 11:33 UTC
Location: Poland
Contact:

Post by *djk »

sybariten wrote:
djk wrote:Multi-Rename Tool (Ctrl_T) - wouldn't help you?
The multirenametool does, like jhegener points out above, rock, but i doubt that it could do this task for me. I need to recursively rename each file... seems like the MRT only works on what is currently selected in the lister.

peace
2sybariten
Do you really have so many such directories?
If not it seems to be easy:
- go to the directory
- Ctrl-A
- Ctrl-T
- foldername_[N]
- Start
- And... that's all. Time for the next directory.
Then the next directory and the next...
Then Ctrl-B, Ctrl-A and copy all the files to the destination folder.

2fabiochelly
Unfortunately MRT doesn't have one parameter: "Parent directory" - so sybariten would have to choose other way of naming (not directory_file) :-)
DJK
Totally addicted to Total Commander
totalcmd.pl
en.totalcmd.pl
sybariten
Junior Member
Junior Member
Posts: 79
Joined: 2003-05-29, 17:31 UTC

Post by *sybariten »

fabiochelly wrote:You can make a search, add to listbox then use the MRT.
You can also use the branch view (CTRL+B) them use the MRT.
Yeah but i'd still have to insert the foldernames by hand. Keep in mind that the files all have the same name, so i somehow have to give them incrementing names

/cheers
User avatar
Aezay
Senior Member
Senior Member
Posts: 269
Joined: 2003-02-12, 07:27 UTC
Location: Denmark
Contact:

Post by *Aezay »

How about using [P]_[N]?
Of all the planets I've been to, this one is my favorite.
User avatar
fabiochelly
Power Member
Power Member
Posts: 603
Joined: 2003-02-05, 12:03 UTC
Location: Rambouillet, France

Post by *fabiochelly »

Yeah but i'd still have to insert the foldernames by hand
You can use the [P] code to enter parent fodler name
Fabio Chelly.
#60241
Lorsqu'on s'occupe d'informatique il faut faire comme les canards...
Paraître calme en surface et pédaler comme un forcené par en dessous
Post Reply