title: How can I copy files from subfolders? (list of filenames is in a text file) using the command line and perl
body: <p>I want to search for list of files in a folder and its subfolders, and copy results to a different folder.</p>
  
  <p>I'm currently using:</p>
  
  <pre><code>for /F "delims==" %i in (listimagescopy.txt) do copy "V:\Photo Library\%i.jpg" "V:\Current Library\Work Zone"
  </code></pre>
  
  <p>there are sub folders in 'photo library' &amp; i need that the command line should look in the sub folders too for the files listed in 'listimagescopy.txt'</p>
  
  <p><em>also</em> within the sub folders there may be 2 files with the same name - i would need to be able to specify that when looking in folders for files from the list it should return the newer version of each file (or if this is to complicated to do with the cmd it would also be okay if when it copies the files they are named differently ex file1 file2)</p>