title: Copy a directory tree to a single directory at a command line
body: <p>Anyone know of a command line utility (or one that can run as a command line) that will collect all the .jpg files in a directory tree to a single folder, only copying files that change?</p>
  
  <p>I started with <a href="http://www.den4b.com/downloads.php?project=ReNamer" rel="nofollow noreferrer">Renamer</a>, which is great for renaming files in their current directories, but fell short when I tried to mangle the path.  This is probably because I don't know Renamer that well.  I ended up creating a text file directory dump, then using a REGEX find / replace to create a batch file, but this is hardly efficient nor automated.</p>
  
  <p>The REGEX: </p>
  
  <p>(G:\DIR\DIR\)([0-9]+\)([0-9]+\)([0-9]+\)([0-9]+\)(p[0-9]+.jpg)</p>
  
  <p>changed this</p>
  
  <p>G:\DIR\DIR\00\00\00\00\p0000000000.jpg</p>
  
  <p>to this</p>
  
  <p>G:\DIR\DIR\p0000000000.jpg</p>
  
  <p>(copy \1\2\3\4\5\6 \1\6) in the batch file.</p>
  
  <p>I need to run the whole thing as a scheduled task without a real person logging in.  Not really looking for a Zip file because I don't want to disturb the system processor, plus most of the files will not change from day to day.  This is more of a file sync.</p>