• 大小: 1.39M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-14
  • 语言: C#
  • 标签: 文件  目录  监控  

资源简介


资源截图

代码片段和文件信息

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

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

        #region winform 文件监控
        private void btnWatchFiles_Click(object sender EventArgs e)
        {
            //浏览文件夹
            if (this.folderBrowserDialog1.ShowDialog() == DialogResult.OK)
            {
                if (this.folderBrowserDialog1.SelectedPath.Trim() != ““)
                {
                    this.txtWatchFiles.Text = folderBrowserDialog1.SelectedPath.Trim();
                }

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2013-05-01 16:18  FilesWatchers\
     文件         929  2011-10-20 21:20  FilesWatchers.sln
     目录           0  2013-05-01 16:17  FilesWatchers\bin\
     目录           0  2017-04-03 13:42  FilesWatchers\bin\Debug\
     文件      112026  2017-04-03 13:42  FilesWatchers\bin\Debug\134076ddddddddddd.mp3
     文件         152  2011-10-19 22:55  FilesWatchers\bin\Debug\492522ddddddddddd.mp3
     文件        1392  2017-04-03 13:42  FilesWatchers\bin\Debug\687511ddddddddddd.mp3
     文件     3543552  2012-12-11 01:06  FilesWatchers\bin\Debug\DevComponents.DotNetBar2.dll
     文件       14336  2013-05-01 16:18  FilesWatchers\bin\Debug\FilesWatchers.exe
     文件       30208  2013-05-01 16:18  FilesWatchers\bin\Debug\FilesWatchers.pdb
     文件       14328  2013-05-01 16:18  FilesWatchers\bin\Debug\FilesWatchers.vshost.exe
     文件         490  2007-07-21 01:33  FilesWatchers\bin\Debug\FilesWatchers.vshost.exe.manifest
     文件       10287  2017-04-03 13:42  FilesWatchers\bin\Debug\log.txt
     文件       26112  2013-01-11 02:53  FilesWatchers\bin\Debug\System.Data.ClientData.dll
     文件       46080  2013-05-02 01:51  FilesWatchers\bin\Debug\Visual Studio Tools.exe
     文件      269824  2013-05-02 01:53  FilesWatchers\bin\Debug\上万套源码免费下载.exe
     文件        3441  2011-10-20 21:20  FilesWatchers\FilesWatchers.csproj
     文件       15148  2013-05-01 16:18  FilesWatchers\Form1.cs
     文件        9354  2013-05-01 16:10  FilesWatchers\Form1.Designer.cs
     文件        6633  2013-05-01 16:10  FilesWatchers\Form1.resx
     目录           0  2017-04-03 13:42  FilesWatchers\obj\
     文件         392  2011-10-09 08:55  FilesWatchers\obj\850968ddddddddddd.mp3
     目录           0  2017-04-03 13:42  FilesWatchers\obj\Debug\
     文件        6890  2013-05-01 16:18  FilesWatchers\obj\Debug\850968ddddddddddd.mp3
     文件         847  2013-05-01 16:10  FilesWatchers\obj\Debug\FilesWatchers.csproj.GenerateResource.Cache
     文件       14336  2013-05-01 16:18  FilesWatchers\obj\Debug\FilesWatchers.exe
     文件         180  2013-05-01 16:10  FilesWatchers\obj\Debug\FilesWatchers.Form1.resources
     文件         180  2011-10-08 17:00  FilesWatchers\obj\Debug\FilesWatchers.Form2.resources
     文件         180  2011-10-08 17:00  FilesWatchers\obj\Debug\FilesWatchers.Form3.resources
     文件       30208  2013-05-01 16:18  FilesWatchers\obj\Debug\FilesWatchers.pdb
     文件         180  2011-10-20 21:20  FilesWatchers\obj\Debug\FilesWatchers.Properties.Resources.resources
............此处省略10个文件信息

评论

共有 条评论