title: Copying files with a specific extension from multiple directories
body: <p>If I have several directories that contain, lets say, word documents and I want to copy every single file in the parent directory that have the ".doc" extension, how could I do that in a batch file?</p>
  
  <p>I know that if I write:</p>
  
  <pre><code>xcopy "C:\Users\Documents\*.doc" C:\Users\NewDestination /s /i 
  </code></pre>
  
  <p>I'll copy all .doc files in the Documents directory to a new destination, but what if the only .doc files in Documents are located in subdirectories? How could I do that without having to write an <code>xcopy</code> line for each subdirectory?</p>