There is not "just copy". It totally depends on what you are running on remote machine. For example, you can run FTP service and provide access to some users (authenticated or anonymous), and then your code should act as an FTP client; you can run Windows file sharing service, and then you can copy file exactly as you would do it with local files, using UNC path names (see
http://en.wikipedia.org/wiki/UNC_path#Uniform_Naming_Convention[
^]); you can run HTTP service on the remote machine, then your code should act as an HTTP client — so on, so forth…
—SA