How to copy files from folder tree dropping all the folders with Robocopy?

Posted by roman m on Stack Overflow See other posts from Stack Overflow or by roman m
Published on 2009-10-01T06:15:17Z Indexed on 2010/06/13 19:52 UTC
Read the original article Hit count: 136

I have the following folder structure:

FolderA
--Folder1
--Folder2
--Folder3
...
--Folder99

Folders 1 through 99 have files in them.

All I want to do is to copy ALL THE FILES into ONE FOLDER, basically do a FolderA copy, and wipe out Folders 1-99 keeping all the files.

I'd like to do it with Robocopy from cmd.exe if possible (Windows Server 2008)

© Stack Overflow or respective owner

Related posts about command-line

Related posts about command-prompt