title: Batch copy multiple files from different folders with their paths listed in a txt file, and rename any duplicates
body: <p>I've been trying to tackle this problem for few days now to no avail. I have no programming experience whatsoever and this task has been driving me nuts. </p>
  
  <p>I have a txt file that has a list of paths to files that need to be copied. Some 8000 paths are in this file. </p>
  
  <p>Copying each item isn't such a big deal as I can just add the copy command and destination before/after each path.</p>
  
  <p>The crux of my issue is that many of these files have the same filename and when they're in different directories it's not a problem. </p>
  
  <p>However I need all the files in the same destination folder and it keeps overwriting itself.</p>
  
  <p>To sum up, I have a .txt file that basically looks like this:</p>
  
  <pre><code>D:\Big folder\Folder\Subfolder a\filea.file    
  D:\Big folder\Folder3\Subfolder za\filek.file    
  D:\Big folder\Folder\Subfolder ds\filed.file   
  D:\Big folder8\Folder\Subfolder p\filea.file...
  </code></pre>
  
  <p>I need some tool that will let me copy all of these files into one destination folder, and make sure any duplicates get renamed so that they aren't overwritten.</p>
  
  <p>such that filea.file and filea.file become filea.file and filea1.file</p>
  
  <p>EDIT: so far I've come up with</p>
  
  <pre><code>FOR /F "tokens=* usebackq" %i IN (`type "C:\Users\username\Desktop\completelist.txt"`) DO COPY "%i" "E:\destination\"
  </code></pre>
  
  <p>which does the read and copy job but not the rename part</p>