|From command line:|
FOR /R "d:\temp1" %A IN (*.*) DO COPY /Y "%~A" "d:\temp2\"
FOR /R "d:\temp1" %%A IN (*.*) DO COPY /Y "%%~A" "d:\temp2\"
Assumption: you want to overwrite any/all existing files. If not, remove "/Y" switch, and answer each duplicate file prompt:
Overwrite d:\temp2\<duplicate file name>? (Yes/No/All):
When your only tool is a hammer, every problem looks like a nail.