文件名称:C# FTP客户端
文件大小:52KB
文件格式:ZIP
更新时间:2017-02-01 15:10:11
C# FTP客户端
非常适合初学者学习的内容~~~~ amespace FTP_客户端 { public partial class Form1 : Form { public Form1() { InitializeComponent(); } static String userName; static String passWord; static String Url = "ftp://"; static FtpWebRequest ftp; private void button1_Click(object sender, EventArgs e) { try { userName = textBox1.Text; passWord = textBox2.Text; Url += textBox3.Text; ftp = (FtpWebRequest)WebRequest.Create(Url); ftp.Method = WebRequestMethods.Ftp.ListDirectory; ftp.Credentials = new NetworkCredential(userName, passWord); FtpWebResponse response = (FtpWebResponse)ftp.GetResponse(); MessageBox.Show("登录成功"); new Form2().Show(); new Form1().Close(); } catch { MessageBox.Show("登录不成功"); } }
【文件预览】:
DES算法演示
----bin()
--------Debug()
----Form1.Designer.cs(7KB)
----Program.cs(496B)
----obj()
--------Debug()
----DES算法演示.csproj(4KB)
----Form1.cs(3KB)
----DES算法演示.sln(919B)
----Form1.resx(6KB)
----DES算法演示.v11.suo(29KB)
----Properties()
--------Resources.resx(5KB)
--------Settings.settings(249B)
--------AssemblyInfo.cs(1KB)
--------Settings.Designer.cs(1KB)
--------Resources.Designer.cs(3KB)