Moving all elements from selected folders into parent folder

English support forum

Moderators: white, Hacker, petermad, Stefan2

albatinti
Junior Member
Junior Member
Posts: 2
Joined: 2014-11-05, 02:58 UTC

Re: Moving all elements from selected folders into parent folder

Post by *albatinti »

Hello, I think my problem is similar:

I have the following directory structure, which is redundant:
c:\A\B\B\file1
c:\A\C\C\file2

Now if I move all to parent A, with F6 + .. I get this
c:\A\file1
c:\A\file2

Which is NOT what I want.

I would like move all files just ONE step up and get rid of the redundant Bs and Cs so like this result:
c:\A\B\file1
c:\A\C\file2

Thank you
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Moving all elements from selected folders into parent folder

Post by *ghisler(Author) »

You could just use the multi-rename tool (e.g. in branch view Ctrl+B) with Name:
..\[N] instead of [N]
Author of Total Commander
https://www.ghisler.com
RandomMarius
Junior Member
Junior Member
Posts: 12
Joined: 2011-10-28, 18:51 UTC

Re: Moving all elements from selected folders into parent folder

Post by *RandomMarius »

This solved my problem as well, but it's not perfect.

In my case I want to move to the root folder (and don't know the depth). Using a \ or C:\ at the start does not work...

I have found I can add multiple backs: ..\..\..\..\..\..\..\..\..\..\ and the extra ones would be ignored.

But this seems cumbersome, is there a better way to specify the root?
gdpr deleted 6
Power Member
Power Member
Posts: 872
Joined: 2013-09-04, 14:07 UTC

Re: Moving all elements from selected folders into parent folder

Post by *gdpr deleted 6 »

2RandomMarius
If you want to move all the files into the root directory, you don't need the MRT to do that.
Simply open the root dir in one file panel, and in the other panel activate branch view and select all the files you want to copy/move. Then just move them (F6)...

However, if you want to maintain the relative directory structure, your idea of "overprovisioning" the parent directories ".." won't work reliably, unfortunately. For instance, a file is five dir levels deep. Applying your idea, it will be moved to the root dir. Okay. But if there is a sub directory next to a file with another file to move inside it, that other file will also be moved to the root without keeping the relative sub directory structure.
NotNull
Senior Member
Senior Member
Posts: 269
Joined: 2019-11-25, 20:43 UTC
Location: NL

Re: Moving all elements from selected folders into parent folder

Post by *NotNull »

Or ...
  • Select the folder you want to move in one of the panes
  • Press F6 to move the folder
  • in the Rename/Move to field, specify

    Code: Select all

    \
  • Press th OK button
  • Done (?)
Post Reply