title: Rename files to match filenames in another folder
body: <p>I have 2 directories. </p>
  
  <pre><code>D:\test\get\f
  
  D:\test\set\f
  </code></pre>
  
  <p>Inside <code>get</code> folder and <code>set</code> folders there are equal amount of files. All files in <code>set</code> are the same (it's a common image file duplicated multiple times to match the number of files in <code>set</code> folder).</p>
  
  <p>My question is, how do I rename all files in <code>set</code> folder same as in <code>get</code> folder?</p>
  
  <p>e.g.:</p>
  
  <p>BEFORE</p>
  
  <p><strong>get folder</strong></p>
  
  <pre><code>apple.jpg
  mango.jpg
  lychee.jpg
  </code></pre>
  
  <p><strong>set folder</strong></p>
  
  <pre><code>123.jpg
  12!.jpg
  asdasd.jpg
  </code></pre>
  
  <hr>
  
  <p>AFTER</p>
  
  <p><strong>get folder</strong></p>
  
  <pre><code>apple.jpg
  mango.jpg
  lychee.jpg
  </code></pre>
  
  <p><strong>set folder</strong></p>
  
  <pre><code>apple.jpg
  mango.jpg
  lychee.jpg
  </code></pre>