title: Windows command forfiles to copy subdirectories
body: <p>Using the forfiles Windows command, I wnat to copy a directory and every subdirectory. To do so, I´ve tried this:</p>
  
  <pre><code>forfiles /S /P  %myDirectoryPath% /C "CMD /C xcopy @path %NewPath% /Y /V /E"
  </code></pre>
  
  <p>But all files included in the subdirectories are copied in the same folder as the files of the main directory.</p>
  
  <p>How can I solve it?</p>
  
  <p>Thanks.</p>