title: powershell copy-item all files from harddrive to another harddrive
body: <p>This is what I have but keep getting following error. I am using Windows 7 Home Premium 64bit. I need to copy everything from my laptop hard-drive to desktop K:\Mybackup folder.</p>
  
  <pre><code>$source = "M:\"
  $dest = "K:\MyBackup"
  Copy-item $source $dest -recurse
  </code></pre>
  
  <p>PS C:> copy-item $source  $dest
  Copy-Item : The given path's format is not supported.
  At line:1 char:10
  + copy-item &lt;&lt;&lt;&lt;  $source  $dest
      + CategoryInfo          : InvalidOperation: (K:\gateway\M:\:String) [Copy-Item], NotSupportedException
      + FullyQualifiedErrorId : ItemExistsNotSupportedError,Microsoft.PowerShell.Commands.CopyItemCommand</p>
  
  <p>PS C:> copy-item</p>
  
  <p>cmdlet Copy-Item at command pipeline position 1
  Supply values for the following parameters:
  Path[0]:</p>