• 大小: 0.07M
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: FTP  客户端  t  

资源简介

FTP客户端

资源截图

代码片段和文件信息

using System;
using System.Text;
using System.Windows.Forms;
using System.Net;
using System.IO;

namespace FtpClientExample
{
    public partial class FormMain : Form
    {
        private const int ftpPort = 21;  //控制连接服务器端口
        private string ftpUriString;  //要访问的资源
        private NetworkCredential networkCredential;  //身份验证信息
        private string currentDir = “/“; //客户端当前工作目录
        public FormMain()
        {
            InitializeComponent();
            //为简单起见,此处假设服务器配置在本机,并假定了有效用户名和密码
            //IPAddress[] ips = Dns.GetHostAddresses(““);
            //textBoxServer.Text = ips[1].ToString();
            //textBoxUserName.Text = “mytestName“;
            //textBoxPassword.Text = “12345“;
        }
        /// 登录
        private v

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件      17920  2010-07-31 21:52  Chap7FtpClientExample\FtpClientExample\bin\Debug\FtpClientExample.exe

     文件      42496  2010-07-31 21:52  Chap7FtpClientExample\FtpClientExample\bin\Debug\FtpClientExample.pdb

     文件      14328  2010-07-31 21:58  Chap7FtpClientExample\FtpClientExample\bin\Debug\FtpClientExample.vshost.exe

     文件        490  2007-07-21 01:33  Chap7FtpClientExample\FtpClientExample\bin\Debug\FtpClientExample.vshost.exe.manifest

     文件      13587  2010-07-31 21:59  Chap7FtpClientExample\FtpClientExample\FormMain.cs

     文件      14691  2010-07-31 21:37  Chap7FtpClientExample\FtpClientExample\FormMain.Designer.cs

     文件       5814  2010-07-31 21:37  Chap7FtpClientExample\FtpClientExample\FormMain.resx

     文件       5108  2009-07-25 09:32  Chap7FtpClientExample\FtpClientExample\FtpClientExample.csproj

     文件        530  2010-07-31 16:47  Chap7FtpClientExample\FtpClientExample\FtpClientExample.csproj.user

     文件      11524  2010-07-31 21:58  Chap7FtpClientExample\FtpClientExample\obj\Debug\FtpClientExample.csproj.FileListAbsolute.txt

     文件        911  2010-07-31 21:37  Chap7FtpClientExample\FtpClientExample\obj\Debug\FtpClientExample.csproj.GenerateResource.Cache

     文件      17920  2010-07-31 21:52  Chap7FtpClientExample\FtpClientExample\obj\Debug\FtpClientExample.exe

     文件        180  2008-04-09 00:16  Chap7FtpClientExample\FtpClientExample\obj\Debug\FtpClientExample.Form1.resources

     文件        180  2010-07-31 21:37  Chap7FtpClientExample\FtpClientExample\obj\Debug\FtpClientExample.FormMain.resources

     文件        180  2009-07-25 09:10  Chap7FtpClientExample\FtpClientExample\obj\Debug\FtpClientExample.MainForm.resources

     文件      42496  2010-07-31 21:52  Chap7FtpClientExample\FtpClientExample\obj\Debug\FtpClientExample.pdb

     文件        180  2010-07-31 16:47  Chap7FtpClientExample\FtpClientExample\obj\Debug\FtpClientExample.Properties.Resources.resources

     文件       4608  2008-10-02 23:38  Chap7FtpClientExample\FtpClientExample\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll

     文件        331  2008-04-22 21:23  Chap7FtpClientExample\FtpClientExample\obj\FtpClientExample.csproj.FileList.txt

     文件       2318  2008-04-21 10:28  Chap7FtpClientExample\FtpClientExample\obj\FtpClientExample.csproj.FileListAbsolute.txt

     文件        478  2009-07-25 09:25  Chap7FtpClientExample\FtpClientExample\Program.cs

     文件       1204  2007-12-05 08:17  Chap7FtpClientExample\FtpClientExample\Properties\AssemblyInfo.cs

     文件       2856  2008-10-02 00:03  Chap7FtpClientExample\FtpClientExample\Properties\Resources.Designer.cs

     文件       5817  2008-04-08 21:10  Chap7FtpClientExample\FtpClientExample\Properties\Resources.resx

     文件       1114  2008-10-02 00:03  Chap7FtpClientExample\FtpClientExample\Properties\Settings.Designer.cs

     文件        249  2007-12-05 08:17  Chap7FtpClientExample\FtpClientExample\Properties\Settings.settings

     文件      25214  2008-04-08 06:31  Chap7FtpClientExample\FtpClientExample\Resources\folder.ico

     文件        938  2008-10-02 00:03  Chap7FtpClientExample\FtpClientExample.sln

    ..A..H.     37376  2010-07-31 21:59  Chap7FtpClientExample\FtpClientExample.suo

     目录          0  2010-04-29 09:51  Chap7FtpClientExample\FtpClientExample\obj\Debug\Refactor

............此处省略12个文件信息

评论

共有 条评论