Search code examples
powershellcopytransfer

This is regarding copying and transferring in Powershell


Having trouble with transferring files with (cp) usage on Powershell. I am not able to transfer from (ex: Desktop to Temp files). Any ideas?


Solution

  • This will do it:

    cp $userprofile\desktop\your_file $temp
    

    Replace your_file with the name (including wildcards if necessary) of your file(s).