title: Move multiple files with the same name into new folders named with the file paths
body: <p>I currently have a lot of files with the same name stored in many different project folders. I would like to move these files into a new folder, and I'd like to name that folder with the original location of the file.</p>
  
  <p>I currently have this structure:</p>
  
  <pre><code>C:\XYZ\Folder 1\File1.txt
  C:\XYZ\Folder 2\File1.txt
  C:\XYZ\Folder 3\File1.txt
  </code></pre>
  
  <p>And I would like all the <code>File1.txt</code> files to be moved to new folders as below:</p>
  
  <pre><code>F:\Destination\C_XYZ_Folder 1\File1.txt
  F:\Destination\C_XYZ_Folder 2\File1.txt
  F:\Destination\C_XYZ_Folder 3\File1.txt
  </code></pre>
  
  <p>I've found it difficult to find and understand what I'm looking for. I can move one file, but beyond that I get prompted to replace the file that was just moved since they all have the same name, and I haven't been able to combine that with creating a new folder with the file location as the name.</p>
  
  <p>Ultimately what I'm trying to do is move multiple files with the same name located in different folders into a new location, but still be aware of the original location of each file. Renaming the file is OK but my file paths are quite long.</p>