[C] renaming for subdirectories

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
enineera
Junior Member
Junior Member
Posts: 37
Joined: 2005-09-28, 13:27 UTC

[C] renaming for subdirectories

Post by *enineera »

If I have a folder which carries subfolder "b" which carries subfolder "c" like the following:

│ aa.txt
│ sb.txt
│ df.txt
│ asd.txt
│ fg.txt
│ adf.txt
│ dfag.txt
└ b
│ 46.txt
│ 6gg.txt
│ aee.txt
│ 4af.txt
│ a3g.txt
│ aa9.txt
│ a5b.txt
└ c
│ a87c.txt
│ 244ad.txt
│ ae3423.txt
│ draf.txt
│ 3e442ag.txt
│ wafga.txt
└ 78fer034reab.txt

How can I use TC at one go to achieve the following result?

│ 1.txt
│ 2.txt
│ 3.txt
│ 4.txt
│ 5.txt
│ 6.txt
│ 7.txt
└ b
│ 1.txt
│ 2.txt
│ 3.txt
│ 4.txt
│ 5.txt
│ 6.txt
│ 7.txt
└ c
│ 1.txt
│ 2.txt
│ 3.txt
│ 4.txt
│ 5.txt
│ 6.txt
└ 7.txt
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

You cannot.

You can use branch view and then multi rename tool to get a result like this:

│ 1.txt
│ 2.txt
│ 3.txt
│ 4.txt
│ 5.txt
│ 6.txt
│ 7.txt
└ b
│ 8.txt
│ 9.txt
│ 10.txt
│ 11.txt
│ 12.txt
│ 13.txt
│ 14.txt
└ c
│ 15.txt
│ 16.txt
│ 17.txt
│ 18.txt
│ 19.txt
│ 20.txt
└ 21.txt

Or you could use a batch file, that switches in each directory and then renames the files one by one.

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
chandragor
Member
Member
Posts: 126
Joined: 2005-06-01, 10:10 UTC
Location: Italy

Post by *chandragor »

You cannot.
Nonsense! You can use find files (alt-F7) with no pattern (or with *.*) then "Feed to Listbox", and you will have a list with all your files. Order them by name you will have them ordered by folder as well.

Then you just need to select the files in the first folder and rename them with MRT, then select the files in the second one and so on until all of them are renamed. Yes, you cannot do it IN A SINGLE PASS, but this method at least will save you from going up and down the folders tree.
User avatar
sas2000
Power Member
Power Member
Posts: 682
Joined: 2003-02-07, 04:32 UTC
Location: Galiza

Post by *sas2000 »

 
As Sheepdog said is not possible to do what you want with Tc, but you can try Flash Renamer , this program can do what you need and is not limited in anyway during evaluation period.
 
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

chandragor wrote:
You cannot.
Nonsense! ...... from going up and down the folders tree.
The question was to do it in one shot.

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
chandragor
Member
Member
Posts: 126
Joined: 2005-06-01, 10:10 UTC
Location: Italy

Post by *chandragor »

Sheepdog wrote:
The question was to do it in one shot.

sheepdog
Sorry, I hadn't correctly understood the sentence "at one go" in the request made by enineera.

It's obvious now that you were right. :oops:
enineera
Junior Member
Junior Member
Posts: 37
Joined: 2005-09-28, 13:27 UTC

Post by *enineera »

Thank you, dude.

If only TC can do it at one go!
User avatar
majkinetor
Senior Member
Senior Member
Posts: 369
Joined: 2005-11-20, 10:36 UTC
Location: Belgrade, Serbia
Contact:

REQUEST

Post by *majkinetor »

It is not bad idea to heave counter reset on switching directory.
This should be implemented.
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
Post Reply