Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.

Windows 7: separating child folders from parent folders

08 Apr 2010   #11

XP / Win7 x64 Pro

From the Windows Command Line:

for /D %i in ("C:\Path\to\Artists\Directory") do xcopy %i "C:\Path\to\New\Folder" /E

...where C:\Path\to\Artists\Directory is the directory with all of the artist folders that contain all of the albums within each of those folders

I believe this is what you're looking for.

My System SpecsSystem Spec
09 Apr 2010   #12

XP Pro SP3 X86 / Win7 Pro X86

Don't ya just love a question with a dozen right answers?
My System SpecsSystem Spec
12 Apr 2010   #13

Vista Ult 64 bit Seven Ult RTM x64

Quote   Quote: Originally Posted by dmehling View Post
I'm not sure if this is the right place to ask my particular question, but here goes. I have a folder for all of my music, and within that folder is a bunch of artists folders, and within each of those I have album folders, which contain the individual music files. I am trying to figure out an easy way to grab all of those album folders at once and move them to one main folder. That's instead of looking through each artist folder, and moving the album folders within each one which could be a very time-consuming process. I thought I had figured out a way to do this, but all of the song files were placed directly into the master folder without being contained within their album folders. Any idea how to do this?
If I understand correctly, you have a tree that looks something like this:

separating child folders from parent folders-we.png

and you want to move a,b,c,d etc. to a new folder without having to open 1 and copy those folders and then open 2 and copy those. Something that would go into the artist folders (1,2 etc. here) and copy only the album folders (a,b,c etc.) to another drive/folder. You have hundreds of artists folders and doing them one at at time will take forever.

Unfortuneately I don't have an answer at this time, a macro or script maybe. Just trying to clarify the question.

My System SpecsSystem Spec

13 Apr 2010   #14

XP / Win7 x64 Pro

Assuming the structure above, if you want to copy folders a,b,c,d,e... to a new folder, run the following command:

for /D %i in (@dir /b "C:\Test\*") do xcopy "%i" "C:\Path\to\New\Folder" /e

This will create C:\Path\to\New\Folder\a, C:\Path\to\New\Folder\b, C:\Path\to\New\Folder\c, ....
My System SpecsSystem Spec

 separating child folders from parent folders

Thread Tools

Similar help and support threads
Thread Forum
How can I Access a Child Network From a Parent Network in Win7 64bit
I use a Comcast broadband gateway, say that this network is called 'Home'. Connected to the 'Home' LAN I have multiple PC's, a Wii, and a Linksys E2500 Router. Connected to the Linksys routers LAN I have 1 PC and 1 network storage device. I would like to map a network drive from a PC on the...
Network & Sharing
Trouble moving system folders to 2nd drive... corruption of folders
Hi folks, this is my first time posting here. This looks like the right place for a post like this. I'm pretty knowledgeable. I've been building my own PCs for 20+ years. I've been out of practice for a while, but I did a ton of research when I decided to build two PCs recently. Even back in...
Installation & Setup
Offline folders to multiple network mapping drive folders
Hi, Newbe with a question. I am assuming it is possible to enable offline files of multiple network folders but I can't get it to work. Situation: Running Win7 ultimate 32bit on a domain. Server with 2 folder shares: Share1: test1
Network & Sharing
Hyperlink syntax to open a parent site and then child site
I may not have this under the correct section and please keep in mind that I am not a programmer but here goes. I am trying to add a hyperlink in Outlook 2007 signature file that will open a child site, but the child site seems to need some personalized information in the cache that comes from...
Browsers & Mail
How do I expand child folders in the main screen?
I have child folders that I would like to know how to expand so that a screen shot of all items in the parent folder could be taken. How do I expand a child folder to open on the same screen?
General Discussion

Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 15:56.
Twitter Facebook Google+ Seven Forums iOS App Seven Forums Android App