Copy Directory Tree to Single Directory

The flowing commands will copy all the files in a directory tree to a single directory. First, from the command prompt, CD to the top node of the directory tree:

cd /d "C:\Users\topoftree"

Then execute to following which will cycle through all child directories, copying all content to the directory of your choosing:

for /r %d in (*) do copy "%d" "C:\Users\directoryIchoose"