cursive Posted September 1, 2007 Share 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 Link to comment Share on other sites More sharing options...
Jeremy Posted September 1, 2007 Share Posted September 1, 2007 I'm impressed. If we had more people like you around I wouldn't cry myself to sleep so often... Link to comment Share on other sites More sharing options...
CLASYS Posted September 4, 2007 Share Posted September 4, 2007 You can also use XXCOPY to "flatten" directories, and overall it's a lot better than ROBOCOPY.cjl Link to comment Share on other sites More sharing options...
Mijzelf Posted September 4, 2007 Share 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. Link to comment Share on other sites More sharing options...
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