資源簡介
在校期間寫的玩意,2009年的老代碼了
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Collections;
using?System.ComponentModel;
using?System.Data;
using?System.Drawing;
using?System.Text;
using?System.Windows.Forms;
using?FTPClient;
using?System.Threading;
using?System.IO;
namespace?FtpClient
{
????/*======================================================================
????命名空間名:????????$NameSpace?Name$
????CLR版本:???????????$ClrVersion$
????文件名:????????????$FileName$
????Mail:??????????????vxbb@vip.qq.com?
????QQ:????????????????491687374
????Created?by?vxbb????$12:53?2009-6-13$
????Copyright?(C)?2008-2009?All?rights?reserved
????======================================================================*/
????public?partial?class?FtpClient?:?Form
????{
????????//================================================================================================
????????#region?Members
????????private?string?remoteHost?=?string.Empty;
????????private?int?remotePort?=?-1;
????????private?string?user?=?string.Empty;
????????private?string?password?=?string.Empty;
????????private?string?curLocalPath?=?string.Empty;
????????private?string?curRemotePath?=?string.Empty;
????????public?string?oldfile?=?string.Empty;
????????private?FTPAsynchronousConnection?ftpconn;
????????private?ArrayList?files;
????????private?ArrayList?CurPath?=?new?ArrayList();
????????#endregion?Members
????????//------------------------------------------------------------------------------------------------
????????#region?Properties
????????#endregion?Properties
????????//================================================================================================
????????#region?Constructors
????????public?FtpClient()
????????{
????????????InitializeComponent();
????????????Control.CheckForIllegalCrossThreadCalls?=?false;
????????????try
????????????{
????????????????string[]?Drv?=?Directory.GetLogicalDrives();
????????????????int?DrvCnt?=?Drv.Length;
????????????????for?(int?i?=?0;?i?????????????????{
????????????????????string?str?=?string.Empty;
????????????????????str?=?“驅動器“?+?Drv[i];
????????????????????combLocal.Items.Add(str);
????????????????????combLocal.SelectedIndex?=?0;
????????????????????string?txt?=?combLocal.Items[combLocal.SelectedIndex].ToString();
????????????????????curLocalPath?=?txt.Substring(3?3);
????????????????????FillFilesView(curLocalPath);
????????????????}
????????????}
????????????catch?(Exception?ex)
????????????{
????????????????MessageBox.Show(ex.Message);
????????????}
????????}
????????#endregion?Constructors
????????//------------------------------------------------------------------------------------------------?
????????#region??Internal?Methods
????????#endregion
????????//------------------------------------------------------------------------------------------------???
????????#region?Private?Methods
????????private?void?FillFilesView(string?FullName)
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
????..A..H.?????36864??2020-06-30?15:15??FtpServer\.vs\FtpServer\v14\.suo
?????文件??????11133??2020-04-29?16:28??FtpServer\Backup\FtpServer\Client.cs
?????文件??????10436??2020-04-29?16:28??FtpServer\Backup\FtpServer\Form1.cs
?????文件???????7945??2020-04-29?16:28??FtpServer\Backup\FtpServer\Form1.Designer.cs
?????文件???????5814??2020-04-29?16:28??FtpServer\Backup\FtpServer\Form1.resx
?????文件???????3839??2020-04-29?16:28??FtpServer\Backup\FtpServer\FtpServer.csproj
?????文件????????498??2020-04-29?16:28??FtpServer\Backup\FtpServer\Program.cs
?????文件???????1350??2020-04-29?16:28??FtpServer\Backup\FtpServer\Properties\AssemblyInfo.cs
?????文件???????2868??2020-04-29?16:28??FtpServer\Backup\FtpServer\Properties\Resources.Designer.cs
?????文件???????5612??2020-04-29?16:28??FtpServer\Backup\FtpServer\Properties\Resources.resx
?????文件???????1094??2020-04-29?16:28??FtpServer\Backup\FtpServer\Properties\Settings.Designer.cs
?????文件????????249??2020-04-29?16:28??FtpServer\Backup\FtpServer\Properties\Settings.settings
?????文件??????22744??2020-04-29?16:28??FtpServer\Backup\FtpServer\Request.cs
?????文件????????917??2020-04-29?16:28??FtpServer\Backup\FtpServer.sln
?????文件??????26624??2020-06-30?15:12??FtpServer\FtpServer\bin\Debug\FtpServer.exe
?????文件??????50688??2020-06-30?15:12??FtpServer\FtpServer\bin\Debug\FtpServer.pdb
?????文件??????21680??2020-06-30?15:15??FtpServer\FtpServer\bin\Debug\FtpServer.vshost.exe
?????文件????????490??2018-09-15?15:29??FtpServer\FtpServer\bin\Debug\FtpServer.vshost.exe.manifest
?????文件??????11179??2020-06-30?15:12??FtpServer\FtpServer\Client.cs
?????文件??????10436??2020-04-29?16:28??FtpServer\FtpServer\Form1.cs
?????文件???????7945??2020-04-29?16:28??FtpServer\FtpServer\Form1.Designer.cs
?????文件???????5814??2020-04-29?16:28??FtpServer\FtpServer\Form1.resx
?????文件???????4029??2020-06-30?15:10??FtpServer\FtpServer\FtpServer.csproj
?????文件????????790??2020-06-30?15:11??FtpServer\FtpServer\obj\Debug\DesignTimeResolveAssemblyReferences.cache
?????文件???????6849??2020-06-30?15:10??FtpServer\FtpServer\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
?????文件????????610??2020-06-30?15:15??FtpServer\FtpServer\obj\Debug\FtpServer.csproj.FileListAbsolute.txt
?????文件????????847??2020-06-30?15:12??FtpServer\FtpServer\obj\Debug\FtpServer.csproj.GenerateResource.Cache
?????文件???????1758??2020-06-30?15:12??FtpServer\FtpServer\obj\Debug\FtpServer.csprojResolveAssemblyReference.cache
?????文件??????26624??2020-06-30?15:12??FtpServer\FtpServer\obj\Debug\FtpServer.exe
?????文件????????180??2020-06-30?15:12??FtpServer\FtpServer\obj\Debug\FtpServer.FtpServerForm.resources
............此處省略62個文件信息
評論
共有 條評論