title: Batch script to copy multiple files (based on string in filename) from all folders under a directory to another folder
body: <p>Hi I am looking for a (simple) batch script for Windows XP to copy pdf files with different filenames but having the same reference numbers in their filenames to a specific folder in a different drive.</p>
  
  <p>E.g.</p>
  
  <p>Copy all pdf's with reference number 111 to folder "test"</p>
  
  <p>Source files in F drive</p>
  
  <pre><code>F:\folder 1\filename 1_111.pdf
  F:\folder 1\folder 2\filename 2_111.pdf
  </code></pre>
  
  <p>Destination folder in C drive</p>
  
  <pre><code>C:\test\
  </code></pre>
  
  <p>I am a novice, so thank you in advance for your help.</p>
  
  <p>Regards,
  Olive</p>