使用C#.NET实现FTP文件下载

上传者: wguorun | 上传时间: 2020-10-28 12:46:55 | 文件大小: 80KB | 文件类型: RAR
使用BackgroundWorker 实现文件下载、异步提示 准备做一个可视化的WinForm界面,这就需要反映文件下载进度,要达到这个实时报告进度的功能,就需要进行异步操作,可以通过线程或BackgroundWorker 类去实现, 由于BackgroundWorker 类是.net2.0新增的组件类,所以想体验一下,以后面的文章中将会给出使用线程的方法。 详细信息见:http://blog.csdn.net/wguorun/archive/2008/10/30/3183863.aspx

文件下载

资源详情

[{"title":"( 29 个子文件 80KB ) 使用C#.NET实现FTP文件下载","children":[{"title":"bin","children":[{"title":"Debug","children":[{"title":"FtpClient.pdb <span style='color:#111;'> 73.50KB </span>","children":null,"spread":false},{"title":"FtpClient.exe <span style='color:#111;'> 27.00KB </span>","children":null,"spread":false},{"title":"ex081030.log <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"ex081028.log <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"FtpClient.vshost.exe <span style='color:#111;'> 13.99KB </span>","children":null,"spread":false},{"title":"ex081029.log <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"FtpClient.vshost.exe.manifest <span style='color:#111;'> 490B </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"obj","children":[{"title":"Debug","children":[{"title":"FtpClient.pdb <span style='color:#111;'> 73.50KB </span>","children":null,"spread":false},{"title":"FtpClient.csproj.FileListAbsolute.txt <span style='color:#111;'> 720B </span>","children":null,"spread":false},{"title":"FtpClient.exe <span style='color:#111;'> 27.00KB </span>","children":null,"spread":false},{"title":"FtpClient.FtpDownLoadForm.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"FtpClient.Properties.Resources.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"FtpClient.FtpWebResponseDemo.resources <span style='color:#111;'> 180B </span>","children":null,"spread":false},{"title":"Refactor","children":null,"spread":false},{"title":"FtpClient.csproj.GenerateResource.Cache <span style='color:#111;'> 1.09KB </span>","children":null,"spread":false},{"title":"TempPE","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"Properties","children":[{"title":"Resources.Designer.cs <span style='color:#111;'> 2.80KB </span>","children":null,"spread":false},{"title":"Settings.settings <span style='color:#111;'> 249B </span>","children":null,"spread":false},{"title":"Resources.resx <span style='color:#111;'> 5.48KB </span>","children":null,"spread":false},{"title":"Settings.Designer.cs <span style='color:#111;'> 1.07KB </span>","children":null,"spread":false},{"title":"AssemblyInfo.cs <span style='color:#111;'> 1.34KB </span>","children":null,"spread":false}],"spread":true},{"title":"FtpWebResponseDemo.resx <span style='color:#111;'> 6.28KB </span>","children":null,"spread":false},{"title":"Program.cs <span style='color:#111;'> 480B </span>","children":null,"spread":false},{"title":"FtpDownLoadForm.resx <span style='color:#111;'> 6.08KB </span>","children":null,"spread":false},{"title":"FtpWebResponseDemo.Designer.cs <span style='color:#111;'> 8.34KB </span>","children":null,"spread":false},{"title":"FtpState.cs <span style='color:#111;'> 1.38KB </span>","children":null,"spread":false},{"title":"FtpClient.csproj <span style='color:#111;'> 3.75KB </span>","children":null,"spread":false},{"title":"FtpDownLoadForm.cs <span style='color:#111;'> 7.23KB </span>","children":null,"spread":false},{"title":"FTP.cs <span style='color:#111;'> 28.16KB </span>","children":null,"spread":false},{"title":"FtpWebResponseDemo.cs <span style='color:#111;'> 5.34KB </span>","children":null,"spread":false},{"title":"FtpDownLoadForm.Designer.cs <span style='color:#111;'> 10.82KB </span>","children":null,"spread":false}],"spread":true}]

评论信息

  • ElevenSir :
    值得学习的东西,很好 谢谢
    2016-04-25
  • easycyd :
    不错,很实用
    2015-08-28
  • try_no :
    很好用的操作类工具
    2015-08-18
  • oqq__L :
    不太会用。。我想获取我FTP里面设置的文件夹,然后获取所有文件夹下面的,文件。。要怎么写呢?
    2015-06-01
  • qq_27012891 :
    蛮不错了,可以值得参考用
    2015-05-04

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明