资源简介

实现FTP文件上传下载,

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.Regularexpressions;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace WindowsFormsApp2
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender EventArgs e)
        {
            string FileFullName = “测试文档“;
            string FileUrl = “测试文档.txt“;

            FolderBrowserDialog fbd = new FolderBrowserDialog();//文件选择框
            DialogResult dr = fbd.ShowDialog();//选择下载的路径
            if (dr == DialogResult.Cancel) return;
            

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

    ..A..H.     51200  2019-11-04 17:02  FTP文件上传下载\WindowsFormsApp2\.vs\WindowsFormsApp2\v15\.suo

     文件          0  2019-11-04 13:14  FTP文件上传下载\WindowsFormsApp2\.vs\WindowsFormsApp2\v15\Server\sqlite3\db.lock

     文件       4096  2019-11-04 13:14  FTP文件上传下载\WindowsFormsApp2\.vs\WindowsFormsApp2\v15\Server\sqlite3\storage.ide

     文件      32768  2019-11-04 14:52  FTP文件上传下载\WindowsFormsApp2\.vs\WindowsFormsApp2\v15\Server\sqlite3\storage.ide-shm

     文件    3193032  2019-11-04 14:44  FTP文件上传下载\WindowsFormsApp2\.vs\WindowsFormsApp2\v15\Server\sqlite3\storage.ide-wal

     文件        189  2019-11-04 13:14  FTP文件上传下载\WindowsFormsApp2\WindowsFormsApp2\App.config

     文件      13824  2019-11-04 14:44  FTP文件上传下载\WindowsFormsApp2\WindowsFormsApp2\bin\Debug\WindowsFormsApp2.exe

     文件        189  2019-11-04 13:14  FTP文件上传下载\WindowsFormsApp2\WindowsFormsApp2\bin\Debug\WindowsFormsApp2.exe.config

     文件      38400  2019-11-04 14:44  FTP文件上传下载\WindowsFormsApp2\WindowsFormsApp2\bin\Debug\WindowsFormsApp2.pdb

     文件       6892  2019-11-04 14:44  FTP文件上传下载\WindowsFormsApp2\WindowsFormsApp2\Form1.cs

     文件       3178  2019-11-04 14:43  FTP文件上传下载\WindowsFormsApp2\WindowsFormsApp2\Form1.Designer.cs

     文件       5817  2019-11-04 14:43  FTP文件上传下载\WindowsFormsApp2\WindowsFormsApp2\Form1.resx

     文件      10600  2019-11-04 14:11  FTP文件上传下载\WindowsFormsApp2\WindowsFormsApp2\FtpHelper.cs

     文件       1443  2019-11-04 14:39  FTP文件上传下载\WindowsFormsApp2\WindowsFormsApp2\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       7276  2019-11-04 13:23  FTP文件上传下载\WindowsFormsApp2\WindowsFormsApp2\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件          0  2019-11-04 13:14  FTP文件上传下载\WindowsFormsApp2\WindowsFormsApp2\obj\Debug\TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs

     文件          0  2019-11-04 13:14  FTP文件上传下载\WindowsFormsApp2\WindowsFormsApp2\obj\Debug\TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs

     文件          0  2019-11-04 13:14  FTP文件上传下载\WindowsFormsApp2\WindowsFormsApp2\obj\Debug\TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs

     文件         42  2019-11-04 13:23  FTP文件上传下载\WindowsFormsApp2\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.csproj.CoreCompileInputs.cache

     文件       1145  2019-11-04 13:47  FTP文件上传下载\WindowsFormsApp2\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.csproj.FileListAbsolute.txt

     文件       1012  2019-11-04 14:44  FTP文件上传下载\WindowsFormsApp2\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.csproj.GenerateResource.cache

     文件      11490  2019-11-04 13:14  FTP文件上传下载\WindowsFormsApp2\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.csprojAssemblyReference.cache

     文件      13824  2019-11-04 14:44  FTP文件上传下载\WindowsFormsApp2\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.exe

     文件        180  2019-11-04 14:44  FTP文件上传下载\WindowsFormsApp2\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.Form1.resources

     文件      38400  2019-11-04 14:44  FTP文件上传下载\WindowsFormsApp2\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.pdb

     文件        180  2019-11-04 13:47  FTP文件上传下载\WindowsFormsApp2\WindowsFormsApp2\obj\Debug\WindowsFormsApp2.Properties.Resources.resources

     文件        528  2019-11-04 13:14  FTP文件上传下载\WindowsFormsApp2\WindowsFormsApp2\Program.cs

     文件       1348  2019-11-04 13:14  FTP文件上传下载\WindowsFormsApp2\WindowsFormsApp2\Properties\AssemblyInfo.cs

     文件       2845  2019-11-04 13:14  FTP文件上传下载\WindowsFormsApp2\WindowsFormsApp2\Properties\Resources.Designer.cs

     文件       5612  2019-11-04 13:14  FTP文件上传下载\WindowsFormsApp2\WindowsFormsApp2\Properties\Resources.resx

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

评论

共有 条评论