Click here to Skip to main content
15,904,024 members
Please Sign up or sign in to vote.
1.80/5 (2 votes)
See more:
In my application I have to copy certain files from remote desktop to my local desktop. How can i do this using C# .net
Posted

You can copy files from them remote computer to your local system if you follow these steps (just a normal \\computername\share\... copy):

http://haacked.com/archive/2010/05/18/remote-desktop-file-copy.aspx[^]
 
Share this answer
 
File.Copy( "\\remotemachinename\localpathonremotemachine\file.txt","C:\localpath\file.txt");
 
Share this answer
 
Comments
bunty swapnil 13-Jun-14 10:13am    
Will it work. i dont have visual studio but i am confirmed this code will not work.
Hi,
Try to this.

http://stackoverflow.com/questions/766033/copy-file-to-remote-computer-using-remote-admin-credentials

Thanks,
Karthikeyan,
Bangalore
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900