文件名称:filewatchservicetest
- 所属分类:
- .net编程
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 329kb
- 下载次数:
- 0次
- 提 供 者:
- j**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
在VS2005中,.Net里面有个ileSystemWatcher控件,用来监控文件变化,它会通知文件创建,修改,删除的消息。网上这样的例子很多,但是在实际应用的时候,发现还有一些待处理的问题,我做了一个简单的demo,解决了如下的问题:
1. 多次连续触发 (通过一个定时器来解决)
2. 能监控网路路径 (serviceProcessInstaller的Account属性设置为NetworkService)
3. 通过windows service来实现, 做成安装文件方便注册服务
-In VS2005 in,. Net has a ileSystemWatcher controls inside that is used to monitor file changes, it will notify the document to create, modify, delete news. Online, one of many examples, but in the practical application of the time and found that there are still some issues to be addressed, I make a simple demo, to solve the following problem: 1. Many times for the trigger (via a timer to solve) 2. capable of monitoring network path (serviceProcessInstaller the Account property is set to NetworkService) 3. through the windows service to achieve, resulting in easy installation files Registration Services
1. 多次连续触发 (通过一个定时器来解决)
2. 能监控网路路径 (serviceProcessInstaller的Account属性设置为NetworkService)
3. 通过windows service来实现, 做成安装文件方便注册服务
-In VS2005 in,. Net has a ileSystemWatcher controls inside that is used to monitor file changes, it will notify the document to create, modify, delete news. Online, one of many examples, but in the practical application of the time and found that there are still some issues to be addressed, I make a simple demo, to solve the following problem: 1. Many times for the trigger (via a timer to solve) 2. capable of monitoring network path (serviceProcessInstaller the Account property is set to NetworkService) 3. through the windows service to achieve, resulting in easy installation files Registration Services
(系统自动生成,下载前可以参看下载内容)
下载文件列表
FileWatchServiceTest
....................\AdvancedFileSystemWatcher.cs
....................\bin
....................\...\Debug
....................\FileWatchServiceTest.csproj
....................\Installer1.cs
....................\Installer1.Designer.cs
....................\Installer1.resx
....................\obj
....................\...\Debug
....................\...\FileWatchServiceTest.csproj.FileList.txt
....................\Program.cs
....................\Properties
....................\..........\AssemblyInfo.cs
....................\Service1.cs
....................\Service1.Designer.cs
FileWatchServiceTest.sln
FileWatchSetupTest
..................\Debug
..................\FileWatchSetupTest.vdproj
..................\Release
....................\AdvancedFileSystemWatcher.cs
....................\bin
....................\...\Debug
....................\FileWatchServiceTest.csproj
....................\Installer1.cs
....................\Installer1.Designer.cs
....................\Installer1.resx
....................\obj
....................\...\Debug
....................\...\FileWatchServiceTest.csproj.FileList.txt
....................\Program.cs
....................\Properties
....................\..........\AssemblyInfo.cs
....................\Service1.cs
....................\Service1.Designer.cs
FileWatchServiceTest.sln
FileWatchSetupTest
..................\Debug
..................\FileWatchSetupTest.vdproj
..................\Release