copy file to remote desktop drive

coure2011 picture coure2011 · Sep 21, 2012 · Viewed 12.7k times · Source

I want to copy a file from my local C:\filename.png to the remote computer to which I am connected via remote desktop's C:\ drive.

Is it possible to copy using powershell or anyother terminal command?

I am using windows 7 (local PC) --- Remote Desktop (Windows Server 2003)

Answer

Thomas Lee picture Thomas Lee · Sep 21, 2012

If your host's c: drive is injected into a terminal services session, it just gets a new drive letter in the remote session.

On my network, my host machine's drives are injected into a VM and C: becomes M:.

So in that case, in the remote session:

copy c:\file.png m:\png

BUt perhaps a beter way - from your host:

Copy \\remote\c$\file.png c:\file.png