September 1, 200718 yr HiWondering if someone can help meI have a bunch of zip files (roughly 200) each nestled in there own subfolders.I want to move them all to the parent folder.Is there a way to automate it using the built in windows xp command line tools?I cant seem to see a way to recursively go through the directories and move the files one folder up.I dont want to keep the directory structure, just want to move all the files into one folder. (parent folder)I tried robocopy but it keeps the folder structure also Cheers.Update:Nevermind, found a solution. Searched the microsoft website and found out about the FOR command.FOR /R C:\Directory %f IN (*.zip) DO move "%f" C:\Directory Edited September 1, 200718 yr by cursive
September 1, 200718 yr I'm impressed. If we had more people like you around I wouldn't cry myself to sleep so often...
September 4, 200718 yr You can also use XXCOPY to "flatten" directories, and overall it's a lot better than ROBOCOPY.cjl
September 4, 200718 yr A third way is to use the 'Search' function of explorer to find all .zip files in \Directory, and drag them from the 'Search Results' window to whereever you want.
Create an account or sign in to comment