Q:

How do I copy all files in the source folder and in the subfolders in batch

I have a folder with many subfolders inside them, the subfolders have random numbers/characters as their name, and they all do have an important file in them. But how do i copy all the files in the source folder and in the subfolders to one folder without copy the folders, in a batchfile?
I use Windows7

A:

This should be all you need.
@echo off
for /r "d:\base\folder" %%a in (*) do copy "%%a" "c:\destination\folder"

