Move folders question

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
sekular
Member
Member
Posts: 104
Joined: 2009-07-02, 19:39 UTC

Move folders question

Post by *sekular »

Using ctrl+b and multi-rename tool usually I can speed up doing big directory changes. But i can not think of anyway to accomplish a certain task.

I have a set of folders labelled A1-A10. Within each folder there is another folder called music. Within the music folder in each A1-10 folder there are various sub folders. What I want to do is remove the music folder and just have the sub-folders within the A10 folder. This means I have to move the sub-folders and then delete the music folder in each folder.

Any way to speed this up?
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50937
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You can do it like this:
1. Make a search for the folders you want to move one level up
2. Click on "Feed to listbox"
3. Select all (Ctrl+A)
4. Multi-rename tool (Ctrl+M)
5. New name: ..£[N] where £ must be a character not apearing in the names
6. Search for: £
7. Replace by: \
8. Start
Author of Total Commander
https://www.ghisler.com
sekular
Member
Member
Posts: 104
Joined: 2009-07-02, 19:39 UTC

Post by *sekular »

I am unable to get that to work.

I firstly struggled to find the subfolders and not the top level folders with a search term as they are not actually named a1-10 they have random names. I used *|music. I had to manually select some of the sub folders as a test. I tried doing the \ in the find and replace and it does not appear to move the folders up a level or rename the files.

Image: http://img197.imageshack.us/img197/3927/ss1ga.jpg
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50937
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You forgot the two dots in step 5. Instead of writing £[N], you need to write:
..£[N]

The ".." means "parent directory".
Author of Total Commander
https://www.ghisler.com
sekular
Member
Member
Posts: 104
Joined: 2009-07-02, 19:39 UTC

Post by *sekular »

Thanks for the reply.

When doing the search how can I ignore level 1 and 2 folders. If i choose different levels from the drop down it does not appear to allow me to ignore level 1 and 2 folders, only sub folders.

As music folder is a level 2 and i only want results of the level 3 folders in the search. Maybe a different search term completely would do it?
User avatar
dma
Junior Member
Junior Member
Posts: 9
Joined: 2010-10-06, 08:47 UTC

Post by *dma »

Wow, marvelous tip, many thanks, it works perfectly.
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

2ghisler(Author)
Sorry I can't figure out why these steps could not be consolidated:
5. New name: ..£[N] where £ must be a character not apearing in the names
6. Search for: £
7. Replace by: \

To this:
5. New name: ..\[N]

At least it works in TC 8.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50937
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Sorry I can't figure out why these steps could not be consolidated:
I don't understand your comment. You write yourself that this was added to TC8...
Author of Total Commander
https://www.ghisler.com
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

ghisler(Author) wrote:
Sorry I can't figure out why these steps could not be consolidated:
I don't understand your comment. You write yourself that this was added to TC8...
So the consolidated procedure only works in TC 8?
I wonder why it doesn't worked in TC 7.5 then. (and why the workaround worked in TC 7.5)
Just curious.
User avatar
HolgerK
Power Member
Power Member
Posts: 5412
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

So the consolidated procedure only works in TC 8?
Yes. New Feature of TC8.0 :D
F1:What's new in this version? wrote:- Multi-rename tool enhancements: Allow backslashes in name field, directly create sub-folders for moving files
Regards
Holger
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

Thanks. Just didn't knew it was possible before.
Post Reply