• 大小: 0.10M
    文件类型: .zip
    金币: 1
    下载: 0 次
    发布日期: 2020-12-26
  • 语言: 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.Threading;

using System.IO; //for fileSystemWatcher


namespace FileEventWatcher
{
    public partial class fileSystemWatcherFrm : Form
    {
        public fileSystemWatcherFrm()
        {
            InitializeComponent();
        }

        private delegate void setLogTextDelegate(FileSystemEventArgs e);

        private delegate void renamedDelegate(RenamedEventArgs e);

        FileSystemWatcher[] fswArr;

        private void fileSystemWatcherFrm_Load(object sender EventArgs e)
        {
            ListViewGroup hardDisk_lvg = new ListViewGroup();

            hardDisk_lvg.

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2012-12-21 10:46  FileEventWatcher\
     目录           0  2012-12-21 10:46  FileEventWatcher\FileEventWatcher\
     文件        3314  2012-08-26 23:38  FileEventWatcher\FileEventWatcher\FileEventWatcher.csproj
     文件         490  2012-08-24 09:15  FileEventWatcher\FileEventWatcher\Program.cs
     目录           0  2012-12-21 10:46  FileEventWatcher\FileEventWatcher\Properties\
     文件        1180  2012-08-23 23:16  FileEventWatcher\FileEventWatcher\Properties\AssemblyInfo.cs
     文件        2888  2012-08-23 23:16  FileEventWatcher\FileEventWatcher\Properties\Resources.Designer.cs
     文件        5612  2012-08-23 23:16  FileEventWatcher\FileEventWatcher\Properties\Resources.resx
     文件        1101  2012-08-23 23:16  FileEventWatcher\FileEventWatcher\Properties\Settings.Designer.cs
     文件         249  2012-08-23 23:16  FileEventWatcher\FileEventWatcher\Properties\Settings.settings
     目录           0  2012-12-21 10:46  FileEventWatcher\FileEventWatcher\bin\
     目录           0  2012-12-21 10:46  FileEventWatcher\FileEventWatcher\bin\Debug\
     文件       53248  2012-09-05 18:08  FileEventWatcher\FileEventWatcher\bin\Debug\FileEventWatcher.exe
     文件       36352  2012-09-05 18:08  FileEventWatcher\FileEventWatcher\bin\Debug\FileEventWatcher.pdb
     文件        5632  2005-11-11 22:25  FileEventWatcher\FileEventWatcher\bin\Debug\FileEventWatcher.vshost.exe
     目录           0  2012-12-21 10:46  FileEventWatcher\FileEventWatcher\bin\Debug\Logs\
     文件           0  2012-09-07 21:56  FileEventWatcher\FileEventWatcher\bin\Debug\Logs\20120907 09-56-01.log
     文件       21557  2012-08-28 13:45  FileEventWatcher\FileEventWatcher\fileSystemWatcherFrm.Designer.cs
     文件       12913  2012-08-28 16:40  FileEventWatcher\FileEventWatcher\fileSystemWatcherFrm.cs
     文件       35965  2012-08-28 13:45  FileEventWatcher\FileEventWatcher\fileSystemWatcherFrm.resx
     目录           0  2012-12-21 10:46  FileEventWatcher\FileEventWatcher\obj\
     目录           0  2012-12-21 10:46  FileEventWatcher\FileEventWatcher\obj\Debug\
     文件         180  2012-08-24 09:25  FileEventWatcher\FileEventWatcher\obj\Debug\FileEventWatcher.Properties.Resources.resources
     文件         857  2012-08-28 13:48  FileEventWatcher\FileEventWatcher\obj\Debug\FileEventWatcher.csproj.GenerateResource.Cache
     文件       53248  2012-09-05 18:08  FileEventWatcher\FileEventWatcher\obj\Debug\FileEventWatcher.exe
     文件       20427  2012-08-28 13:48  FileEventWatcher\FileEventWatcher\obj\Debug\FileEventWatcher.fileSystemWatcherFrm.resources
     文件       36352  2012-09-05 18:08  FileEventWatcher\FileEventWatcher\obj\Debug\FileEventWatcher.pdb
     目录           0  2012-12-21 10:46  FileEventWatcher\FileEventWatcher\obj\Debug\Refactor\
     目录           0  2012-12-21 10:46  FileEventWatcher\FileEventWatcher\obj\Debug\TempPE\
     文件        1138  2012-09-05 18:07  FileEventWatcher\FileEventWatcher\obj\FileEventWatcher.csproj.FileListAbsolute.txt
     文件         937  2012-08-23 23:16  FileEventWatcher\FileEventWatcher.sln
............此处省略1个文件信息

评论

共有 条评论