简体   繁体   中英

Copy files from ftp to remote desktop using C#.Net

I have to copy some files from ftp to another remote desktop computer. I am doing this as:

File.Copy("ftp://IPAddress:Port/MyFolder/MyFile.dll", @"IPAddress\MyLocation");

But this is not working. I think, it happened because the folder in the remote desktop where i have to paste my file is not a shared folder.

so , i want to know how can we copy files from ftp to remote desktop folder which is not shared?

also, the ftp and remote desktop requires the credentials (Password). pls also tell me how can i handle credentials in my code?

The System.Io.File class does not support URI's or the FTP protocol, only access to local file system and shared folders.

Please check out this article on how to upload files with FTP using the .NET Framework.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM