cursive Posted September 1, 2007 Posted September 1, 2007 (edited) 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, 2007 by cursive
Jeremy Posted September 1, 2007 Posted September 1, 2007 I'm impressed. If we had more people like you around I wouldn't cry myself to sleep so often...
CLASYS Posted September 4, 2007 Posted September 4, 2007 You can also use XXCOPY to "flatten" directories, and overall it's a lot better than ROBOCOPY.cjl
Mijzelf Posted September 4, 2007 Posted September 4, 2007 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.
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now