title: Syntax for Copy-Item and concatenating a directory\file
body: <p>I'm trying to copy files from one location to another.  I have a CSV that has the directory, name, and some other fields that aren't important for the move.  I'm pretty sure that my code is trying to move the entire folder structure and not just the file.  How can I just move the file? <strong>OR</strong> How can I move a similar folder structure to the new location (\folder\username)</p>
  
  <p>The directory looks something like:</p>
  
  <pre><code>\\server\folder\username
  </code></pre>
  
  <p>The code I was trying:</p>
  
  <pre><code>Import-Csv c:\movefiles.csv | ForEach-Object {Copy-Item -LiteralPath ($_.Directory + "\" + $_.name) -Destination c:\}
  </code></pre>
  
  <p>The destination will actually be a location on another server.</p>