|
Answer» Basically, I'm looking for a way (through DOs, perhaps?) to move all FILES in SUBFOLDERS to the root directory. Let me EXPLAIN this by showing my setup:
Parent : Music (Root)
Level 1 Sub-Directory: Green Day Level 2 Sub-Directory: Dookie DO - Song 1.mp3 DO - Song 2.mp3 DO - Song 3.mp3
Level 2 Sub-Directory: American Idiot AI - Song 4.mp3 AI - Song 5.mp3 AI - Song 3.mp3
Level 1 Sub-Directory: Blink 182 Level 2 Sub-Directory: Enema of the State ES - Song 1.mp3 ES - Song 2.mp3 ES - Song 3.mp3
Level 2 Sub-Directory: Blink 182 - Greatest Hits BGH - Song 4.mp3 BGH - Song 5.mp3 BGH - Song 3.mp3
What I want to do is move all of the MP3 files to the "Music" folder; in other words, I want to move all files in subdirectories up to a desired parent folder.
Anyone know of a way I can do this? I searched for utilities online but it's kind of a difficult thing to search for. I was also thinking there is possibly a way to do this through DOS.
Moving manually is not practical -- there are hundreds of folders.This may WORK for you:
Code: [Select]@echo off for /f "tokens=* delims=" %%X in ('dir /s /b \music\*.mp3') do ( move "%%x" \music )
I guessed that those prefixes (DO, AI, ES, and BGH) were part of the song name otherwise you'll have problems with duplicate song titles.
Good luck.
It worked, thanks a million!
|