Rename file within folder with the folder's name

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
batis610
Junior Member
Junior Member
Posts: 6
Joined: 2011-05-12, 23:09 UTC

Rename file within folder with the folder's name

Post by *batis610 »

Hi all,

I tried to do this operation in vain.

I'll try to explain what I want to do: I have many folders each one contains a file:
Folder.Name(contains File.Name)

Folder.Name.1 (File.1.psd) => Folder.Name.1 (Folder.Name.1.psd)
Folder.Name.2 (File.2.psd) => Folder.Name.2 (Folder.Name.2.psd)
Folder.Name.3 (File.3.psd) => Folder.Name.3 (Folder.Name.3.psd)
Folder.Name.4 (File.4.psd) => Folder.Name.4 (Folder.Name.4.psd)
Folder.Name.5 (File.5.psd) => Folder.Name.5 (Folder.Name.5.psd)
....

what I want is to rename each file with the folder's name like this...

Then, when renamed, why not moving all text files to a new directory :)

I used to do all this using linux easily, so I hope that TC can do it under linux :)

Thanks in advance
Last edited by batis610 on 2012-01-30, 12:11 UTC, edited 1 time in total.
User avatar
Sir_SiLvA
Power Member
Power Member
Posts: 3381
Joined: 2003-05-06, 11:46 UTC

Post by *Sir_SiLvA »

Go to the Sourcefolder Containing all the folders
Press CTRL+B
Mark all the files with CTRL+A
Press CTRL+M
Replace [N] with [P]
Press Enter
Press Escape
Switch in the other panel to the folder where the files should go
Press F6/f5 to Move/Copy the files

(start reading TCs excellent Helpfile :D for mor Tips)
Hoecker sie sind raus!
batis610
Junior Member
Junior Member
Posts: 6
Joined: 2011-05-12, 23:09 UTC

Post by *batis610 »

Wow, thank you so much for your help... It is easier than what I expected :D

And yeah, I've to read the help to learn how to use this powerful tool :)

Thanks again
batis610
Junior Member
Junior Member
Posts: 6
Joined: 2011-05-12, 23:09 UTC

Post by *batis610 »

Hi there, It's me again :)

What if the initial situation is that the files I want to rename are compressed into many RARs... So I want to extract them, then rename each file with his folder's name:

Folder.Name.1 (File.1.rar, File.1.r00, File.1.r01, ...) => Folder.Name.1 (File.1.psd) => Folder.Name.1 (Folder.Name.1.psd)
Folder.Name.2 (File.2.rar, File.2.r00, File.2.r01, ...) => Folder.Name.2 (File.2.psd) => Folder.Name.2 (Folder.Name.2.psd)
Folder.Name.3 (File.3.rar, File.3.r00, File.3.r01, ...) => Folder.Name.3 (File.3.psd) => Folder.Name.3 (Folder.Name.3.psd)

Thanks in advance :)
User avatar
MVV
Power Member
Power Member
Posts: 8713
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You may use branch view (Ctrl+B or Ctrl+Shift+B) or just search and feed results to listbox in order to see all files that should be renamed. Then you may simply select them and open MRT.
Post Reply