title: Copy one individual file with its parent folder / full path
body: <p>I am attempting to use PowerShell to copy individual files from an array, to a destination folder. However, I need to copy each file with its respective source folder as well. Not the entire contents of that folder, but just the folder and the file. For example:</p>
  
  <pre><code>Copy-Item -Path \\SERVER\FOLDER1\FOLDER2\FILE.TXT -Destination E:\TEMP
  </code></pre>
  
  <p>Now obviously, this will bring over that file, but that's it. I would need for it to bring over that file and at least the folder it's in, so preferably I'd wind up with this: E:\TEMP\FOLDER2\FILE.TXT. Alternatively, while not perfect, I could also deal with, E:\TEMP\FOLDER1\FOLDER2\FILE.TXT. But nothing I'm doing is bringing over the folder/container the file is in, just the file itself and that's it.</p>