Complex copying question

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
EvilDragon
Junior Member
Junior Member
Posts: 24
Joined: 2016-08-10, 01:08 UTC

Complex copying question

Post by *EvilDragon »

Hello!

I wonder if something like this is possible to do in TC:

I have a folder structure I want to "turn around" in an interesting way. So right now the tree looks like this:

<product name 1>\<product part 1>
<product name 1>\<product part 2>
<product name 1>\<product part 3>
<product name 2>\<product part 1>
<product name 2>\<product part 2>
<product name 2>\<product part 3>
etc.

All instances of "product part" have the same name, in ALL of <product name> folders. I would like to turn the structure around so that it's like this:

<product part 1>\<product name 1>
<product part 1>\<product name 2>
...
<product part 1>\<product name n>
<product part 2>\<product name 1>
<product part 2>\<product name 2>
...
<product part 2>\<product name n>


There is quite a lot of folders in here so doing it manually would take me an awful lot of time. I figured, in order to do this, I need to search for "product name 1", and then "feed to listbox", then copy stuff out. However, since all the found folders have EXACTLY the same filename, all the files within them would be copied to ONE folder, whereas I would like for each entry fed to the listbox to create a new folder, preferably with a different name (I have the list of names for these folders in a txt file).


Can this be done in a miraculous way? Thanks!
User avatar
nsp
Power Member
Power Member
Posts: 1804
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Post by *nsp »

What you can do is :
- Copy all the files you want with current structure into <TARGET>\tmp folder

- Use branch-view [^]B to get all files from <TARGET>\tmp select all and use multi rename tools.

- On multi rename tools on the name input box, put ..\..\..\[P]\[G]\[N]
This should move all files to <target> with new structure, but this will only work if you only have files inside part folders.

[G] is grand parent folder
[P] is parent folder
[N] is filename
Your file are currently <target>\tmp\[G]\[P]\[N]
with ..\..\.. you will ends into <target> and then move all files into [P]\[G]\[N] reversing parent and grand parent.
EvilDragon
Junior Member
Junior Member
Posts: 24
Joined: 2016-08-10, 01:08 UTC

Post by *EvilDragon »

Thanks!
Post Reply