title: Recursively copy file-types from directory tree
body: <p>I'm trying to find a way to copy all *.exe files (and more, *.dtd, *.obj, etc.) from a directory structure to another path.</p>
  
  <p>For example I might have:</p>
  
  <pre><code>Code
     \classdirA
               \bin
                   \classA.exe
     \classdirB
               \bin
                   \classB.exe
     \classdirC
               \bin
                   \classC.exe
     \classdirD
               \bin
                   \classD.exe
  </code></pre>
  
  <p>And I want to copy all *.exe files into a single directory, say <code>c:\bins</code>
  What would be the best way to do this?</p>
  
  <p>Constraints for my system are:</p>
  
  <ul>
  <li>Windows</li>
  <li>Can be Perl, Ruby, or .cmd</li>
  </ul>
  
  <p>Anyone know what I should be looking at here?</p>