资源简介

vs2017,c#,扫描指定文件夹下面所有文件及指定文件

资源截图

代码片段和文件信息

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Windows.Forms.Design;

namespace ScanDemo
{
    public class FolderDialog : FolderNameEditor
    {
        FolderNameEditor.FolderBrowser fDialog = new FolderNameEditor.FolderBrowser();
        public FolderDialog()
        {
        }
        public DialogResult DisplayDialog()
        {
            return DisplayDialog(“请选择一个文件夹“);
        }
        public DialogResult DisplayDialog(string description)
        {
            fDialog.Description = description;
            return fDialog.ShowDialog();
        }
        public string Path
        {
            get { return fDialog.DirectoryPath; }
        }
        ~FolderDialog() { fDialo

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

    ..A..H.     38400  2020-04-01 10:47  扫描本地文件夹\ScanDemo\.vs\ScanDemo\v15\.suo

     文件          0  2020-04-01 10:24  扫描本地文件夹\ScanDemo\.vs\ScanDemo\v15\Server\sqlite3\db.lock

     文件       4096  2020-04-01 10:24  扫描本地文件夹\ScanDemo\.vs\ScanDemo\v15\Server\sqlite3\storage.ide

     文件      32768  2020-04-01 10:24  扫描本地文件夹\ScanDemo\.vs\ScanDemo\v15\Server\sqlite3\storage.ide-shm

     文件    2241312  2020-04-01 10:44  扫描本地文件夹\ScanDemo\.vs\ScanDemo\v15\Server\sqlite3\storage.ide-wal

     文件      11776  2020-04-01 10:44  扫描本地文件夹\ScanDemo\ScanDemo\bin\Debug\ScanDemo.exe

     文件      34304  2020-04-01 10:44  扫描本地文件夹\ScanDemo\ScanDemo\bin\Debug\ScanDemo.pdb

     文件        843  2020-04-01 10:29  扫描本地文件夹\ScanDemo\ScanDemo\FolderDialog .cs

     文件       3755  2020-04-01 10:47  扫描本地文件夹\ScanDemo\ScanDemo\Form1.cs

     文件       6019  2020-04-01 10:43  扫描本地文件夹\ScanDemo\ScanDemo\Form1.Designer.cs

     文件       5817  2020-04-01 10:43  扫描本地文件夹\ScanDemo\ScanDemo\Form1.resx

     文件        827  2020-04-01 10:24  扫描本地文件夹\ScanDemo\ScanDemo\obj\Debug\DesignTimeResolveAssemblyReferences.cache

     文件       6996  2020-04-01 10:29  扫描本地文件夹\ScanDemo\ScanDemo\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件         42  2020-04-01 10:44  扫描本地文件夹\ScanDemo\ScanDemo\obj\Debug\ScanDemo.csproj.CoreCompileInputs.cache

     文件        708  2020-04-01 10:44  扫描本地文件夹\ScanDemo\ScanDemo\obj\Debug\ScanDemo.csproj.FileListAbsolute.txt

     文件       1012  2020-04-01 10:44  扫描本地文件夹\ScanDemo\ScanDemo\obj\Debug\ScanDemo.csproj.GenerateResource.cache

     文件      11776  2020-04-01 10:44  扫描本地文件夹\ScanDemo\ScanDemo\obj\Debug\ScanDemo.exe

     文件        180  2020-04-01 10:44  扫描本地文件夹\ScanDemo\ScanDemo\obj\Debug\ScanDemo.Form1.resources

     文件      34304  2020-04-01 10:44  扫描本地文件夹\ScanDemo\ScanDemo\obj\Debug\ScanDemo.pdb

     文件        180  2020-04-01 10:44  扫描本地文件夹\ScanDemo\ScanDemo\obj\Debug\ScanDemo.Properties.Resources.resources

     文件        489  2020-04-01 10:24  扫描本地文件夹\ScanDemo\ScanDemo\Program.cs

     文件       1314  2020-04-01 10:24  扫描本地文件夹\ScanDemo\ScanDemo\Properties\AssemblyInfo.cs

     文件       2829  2020-04-01 10:24  扫描本地文件夹\ScanDemo\ScanDemo\Properties\Resources.Designer.cs

     文件       5612  2020-04-01 10:24  扫描本地文件夹\ScanDemo\ScanDemo\Properties\Resources.resx

     文件       1095  2020-04-01 10:24  扫描本地文件夹\ScanDemo\ScanDemo\Properties\Settings.Designer.cs

     文件        249  2020-04-01 10:24  扫描本地文件夹\ScanDemo\ScanDemo\Properties\Settings.settings

     文件       3507  2020-04-01 10:30  扫描本地文件夹\ScanDemo\ScanDemo\ScanDemo.csproj

     文件       1123  2020-04-01 10:24  扫描本地文件夹\ScanDemo\ScanDemo.sln

     目录          0  2020-04-01 10:24  扫描本地文件夹\ScanDemo\.vs\ScanDemo\v15\Server\sqlite3

     目录          0  2020-04-01 10:24  扫描本地文件夹\ScanDemo\.vs\ScanDemo\v15\Server

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

评论

共有 条评论