title: Windows batch file - Concatenate all files in subdirectories
body: <p>Need to concatenate all of the javascript files in a directory and all of its sub-directories into one file.</p>
  
  <p>Right now I have a very simple command in a batch file that concatenates all of the matching files in one directory into one file:</p>
  
  <pre><code>copy C:\javascripts\*.js concatenated.js
  </code></pre>
  
  <p>However, this only works for the one directory and not any of its sub-directories. How can I do this same thing and also include all of the matching files in the sub-directories?</p>
  
  <p>Thanks so much!</p>