title: ROBOCOPY - Copy folders content to a single folder
body: <p>Here is some code I made :)</p>
  
  <pre><code>@echo off
  set source="R:\Contracts\"
  set destination="R:\Contracts\Sites\"
  ROBOCOPY %source% %destination% *.srt *.pdf *.mp4 *.jpg /COPYALL /R:0 /S
  for /r %source in (*) do @copy "%destination" .
  </code></pre>
  
  <p>R:\Contracts\ is full of folders which have files in them.</p>
  
  <p>I want to copy all to R:\Contracts\Sites\ and flatten the folder structure.</p>
  
  <p>Everything copies well but also the folder structure.</p>
  
  <p>Thank you</p>