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
Moving all elements from selected folders into parent folder
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50561
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: Moving all elements from selected folders into parent folder
You could just use the multi-rename tool (e.g. in branch view Ctrl+B) with Name:
..\[N] instead of [N]
..\[N] instead of [N]
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- Junior Member
- Posts: 12
- Joined: 2011-10-28, 18:51 UTC
Re: Moving all elements from selected folders into parent folder
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?
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?
-
- Power Member
- Posts: 872
- Joined: 2013-09-04, 14:07 UTC
Re: Moving all elements from selected folders into parent folder
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.
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.
Re: Moving all elements from selected folders into parent folder
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 (?)