I am trying to write a script that copies all files in the directory tree to a folder without the folders. Only teh files inside them.
I have Folder1\Folder2\Folder3
and I want to copy all files in the 3 sub folders into Folder4.
I tried this but it fails:
For %%J in (*.*) Do (XCOPY "C:\Folder1\%%J" "C:\Folder2\" /Y)