且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用C#将文件上载到Ftp服务器?

更新时间:2023-01-03 15:12:20

您好,



您可以使用 FtpWebRequest Class 通过FTP上传文件。



可以在此MSDN教程中找到中的一个示例。 。



希望它有所帮助/


步骤1)做一点研究。谷歌是一个很好的起点

ie:

简单的C#FTP类 [ ^ ]

http://www.vcskicks.com/csharp_ftp_upload.php [ ^ ]

步骤2)开始编码

步骤3)编译并使用调试来解决小问题

步骤4)当你遇到问题时你不知道怎么解决但是至少你试过它,然后回来问一些具体的代码片段给出问题



对不起,如果这不是你的答案正在寻找。但你的问题有点太宽,无法在快速答案中得到解答。如果你对具体问题提出10个具体问题,那就更好了,你得到更快的帮助,而不是关于如何引导的大问题


你可以通过这个,这个链接将会帮助您。

使用FTP将文件上传到服务器 [ ^ ]

hi experts ,

how to upload file to ftp server using c#.

thanks in advance .


best regards .

sairam

Hi,

You can use the FtpWebRequest Class to upload files via FTP.

An example of this can be found in this MSDN tutorial.

Hope it helps/


Step 1) Do a little research. Google is a good start point
i.e:
Simple C# FTP Class[^]
http://www.vcskicks.com/csharp_ftp_upload.php[^]
Step 2) Start coding
Step 3) Compile and use the debug to solve little issues
Step 4) When you get a problem you don't know how to solve but at least you tried it, then come back and ask for something concrete with a snippet of the code giving problems

Sorry if this is not the answer you were looking for. But your question is a bit too wide to be answered at the "Quick" Answers. It is better and you get faster help if you make 10 concrete questions about concrete problems, than a big question about a "how-to guide"


You can go through this, this link will help you.
Upload file to server using FTP[^]