Hello All, I want to copy a file to remote computer programmatically using C#. What I want to do: Copy a file to remote computer. I have the administrator's username and password of the remote computer. I just need to establish the connection to the remote
computer using the username and password and then copy the file(same as we do in Windows Explorer) but this is to be done through program. I have tried hard doing this with ManagementScope class but am unable to do it. Can anyone help me. Regards, Bhavya Shah
There may be a framework way... but my first thought is to use dllimport to call the WinAPI WNetAddConnection2. Then System.IO.File.Copy to copy the files.
Tim McBride
This posting is provided "AS IS" with no warranties, and confers no rights.
None
0 Points
2 Posts
copy file to remote computer
Sep 24, 2003 07:36 AM|shah_bhavya|LINK
Member
61 Points
471 Posts
Re: copy file to remote computer
Sep 25, 2003 02:36 PM|timmcb|LINK
This posting is provided "AS IS" with no warranties, and confers no rights.