Mass rename filepaths - is it possible? Or need another workaround

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
odeon
Junior Member
Junior Member
Posts: 22
Joined: 2009-07-29, 05:44 UTC

Mass rename filepaths - is it possible? Or need another workaround

Post by *odeon »

Hi,
I have about 1000 dirs with names say Folder1, Folder2, ... Folder1000.
Inside of them each dir has subdir named 'res' with files inside.
I need to 'uplift' the files (happily, these files' names are identical) from the 'res' subdir to 'FolderN'.
As I suppose it can be done by mass renaming filepaths that include 'res', searching for 'res' and replacing it with none.
But I didn't find how to show filepaths to the MRT, it only sees the name of the file itself...
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Mass rename filepaths - is it possible? Or need another workaround

Post by *ghisler(Author) »

This is quite simple:
1a. You can use branch view to view the files in these folders: Select the folders and press Ctrl+Shift+B
or
1b. Make a search and click on "Feed to listbox"
2. Select them, e.g. with Ctrl+A
3. Open the Multi-rename tool
4. Change the name field from
[N]
to
..\[N]
Author of Total Commander
https://www.ghisler.com
User avatar
solid
Power Member
Power Member
Posts: 747
Joined: 2004-08-09, 11:20 UTC

Re: Mass rename filepaths - is it possible? Or need another workaround

Post by *solid »

It is possible.
Select all your files that want to move it one folder up and open MRT.
Make sure that MRT is open with default settings (not prior used ones)

In the Rename mask field enter

..\[N]

Press Start.

Edit:
@Ghisler was few seconds faster :)
odeon
Junior Member
Junior Member
Posts: 22
Joined: 2009-07-29, 05:44 UTC

Re: Mass rename filepaths - is it possible? Or need another workaround

Post by *odeon »

Great Thanks!
(Oh my, how powerful the TC is...)
BTW for those who are interested: more than one level up is possible too! tried ..\..\[N] to copy two levels up, for instance
Post Reply