Sunday, December 4, 2016

batch - Combine two sets of folders into new structure

I have two sets of folders, which are two versions of the same data with identical subfolders (200+). I need to combine the sets using a batch into a slightly new structure. For instance:





setA\folder1\A_files
\folder2\A_files
\folder3\A_files



setB\folder1\B_files
\folder2\B_files

\folder3\B_files


I need to setup setA like so:




setA\folder1\A_files_folder\A_files
\B_files_folder\B_files
\A_files
\folder2\A_files_folder\A_files

\B_files_folder\B_files
\A_files
\folder3\A_files_folder\A_files
\B_files_folder\B_files
\A_files


Basically, setA gets two new folders, one for a copy of A_files and one to move B_files into. In the end, nothing is removed from setA and the setB folder will be deleted.



Simple, but hard to explain.




Thanks for your help!

No comments:

Post a Comment

hard drive - Leaving bad sectors in unformatted partition?

Laptop was acting really weird, and copy and seek times were really slow, so I decided to scan the hard drive surface. I have a couple hundr...