# Copy data from a remote Linux box to my Windows desktop

I use Putty to login to the remote server and then set the environment and change the path to a particular directory. Now from this dir, I need to copy a folder to my desktop which is Windows?

How can I achieve this ?

Some of my failed attempts are as follows

scp -r remote_foldername srao@my_ipaddress:C:\srao\Users\Desktop


So from the remote server which is to be copied through putty, to my_username_in_windows@ip_address:path to destination

-
 This is not a programming question, and is off topic for StackOverflow. The FAQ has more information about the types of questions that should be asked here. Voting to close as off topic and migrate to a more suitable site. – Ken White Oct 8 '12 at 3:06

## migrated from stackoverflow.comOct 8 '12 at 5:30

To copy from the Windows command line (not from the PuTTY shell on your remote Linux machine), PuTTY uses pscp. You may have pscp already installed with PuTTY (e.g. in C:\Program Files\PuTTY or C:\Program Files (x86)\PuTTY), or it can be dowloaded from the PuTTY Download Page. It uses syntax like standard scp:
 C:\Program Files (x86)\PuTTY>pscp -r mylinuxuser@remotelinuxbox:/path/to/foldername C:\path\to\windows\destination