title: Powershell: Using Copy-Item to copy a file from TFS Server to another destination
body: <p>I have the command </p>
  
  <pre><code>Copy-Item -literalPath $file.ServerItem $destinationPath -recurse -force
  </code></pre>
  
  <p>where </p>
  
  <blockquote>
    <p>$file.ServerItem (path to file on tfs server that we want to copy)=
    "$/TFSServer/MyPath/ToTheFile.vb"</p>
  </blockquote>
  
  <p>and</p>
  
  <blockquote>
    <p>$destinationPath (test server path where file should be copied to) =
    "\104server\MyPath\ToTheFile.vb"</p>
  </blockquote>
  
  <p>I get the error</p>
  
  <blockquote>
    <p>Copy-Item: Cannot find path '$/TFSServer/MyPath/ToTheFile.vb' because
    it does not exist.</p>
  </blockquote>
  
  <p>This file exists. Please, do you have any ideas?</p>