How do I copy all the files in a folder and all of the files in its subfolders to a single folder on XP?
Assuming the names are all unique, you should be able to use this command (command group really):
To clarify - open a Command Prompt and in the root folder of the folder with the sub folders you want to copy, run that command. So, for example, if you want to copy everything in "C:\Sample Folder Tree" and all its sub directories, you could change into "C:\Sample Folder Tree" from the command prompt and then run that command.
Or, you could just specify it in the dir section like this:
If you want to see what this will do without it actually doing anything, add an "@echo" between the do and copy - like so:
That works. It needs administration cmd unless you dont want /copyall (which copies permissions and i think timestamps instead of creating new timestamps).
theres a robocopy for XP and available on vista and Windows 7. copy works fine enough tho. I like robocopy bc it wont recopy the same files if the dest has a copy (lets say you get interrupted like a power outage or want to shutdown and sleep)
protected by Community♦ Sep 20 '11 at 7:41
Thank you for your interest in this question.
Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).
Would you like to answer one of these unanswered questions instead?