-
filewatchservicetest
使用FileSystemWatcher监控网络路径(包含源代码)
在VS2005中,.Net里面有个FileSystemWatcher控件,用来监控文件变化,它会通知文件创建,修改,删除的消息。网上这样的例子很多,但是在实际应用的时候,发现还有一些待处理的问题,我做了一个简单的demo,解决了如下的问题:
1. 多次连续触发 (通过一个定时器来解决)
2. 能监控网路路径 (serviceProcessInstaller的Account属性设置为NetworkService)
3. 通过windows service来实现, 做成安装文件方便注册服务
注意事项:
1. 切记网络路径要给guest的权限,否则监控不了。
2. 修改Service1代码中的watcher.Path。
3. 新建文件c: est.log,将此文件设置为可写的权限。
4. 安装完成后手动将服务启动。(err)
- 2008-06-14 19:44:06下载
- 积分:1
-
virtual-memory
windows核心编程-虚拟内存, 针对大文件读取的解决之道(windows core programming- virtual memory)
- 2014-07-08 16:25:44下载
- 积分:1
-
DropFile
DropFile函数的应用,实现将一个文件直接拖入打开的.exe文件中,主要应用VC++实现(DropFile function of the application, to achieve a direct drag a file to open. Exe file, VC++ to achieve the main application)
- 2010-09-09 09:35:31下载
- 积分:1
-
0087654
给工具栏按钮设置下拉箭头,VC++编程精选学习源码,很好的参考资料。(To set the drop-down arrow button on the toolbar, select learning VC++ programming source code, a good reference.)
- 2013-11-19 10:53:26下载
- 积分:1
-
bookmark
简单的书签程序,记录一些常用网址。能添加网址,单击网址自动进入网站。(Bookmark procedures, records of some commonly used web site.Add URL, click URL automatically enter the site.
)
- 2012-02-05 13:01:49下载
- 积分:1
-
S-Function
s函数的编程说明,有具体实例说明,介绍了其工作原理(It s a good article of s-function.)
- 2012-03-08 15:16:25下载
- 积分:1
-
ManifestCreator
Create Manifest for VB6 in code by famous VB guru Lavolpe
- 2010-07-03 12:23:58下载
- 积分:1
-
tongxunluxitong
小型通讯录系统,能实现数据的查询。添加。删除。修改等功能。(Small address book system, to achieve the query data. Adding. Deleted. Modify functions.)
- 2013-12-09 12:51:53下载
- 积分:1
-
NumToChinese
功能简介:第1章 VC与C++开发基础评价:很详实,推荐(Features: Chapter 1 VC and C++ development the basis of evaluation: very detailed, it is recommended)
- 2012-05-31 01:42:02下载
- 积分:1
-
PDFBox
VB使用控件DLL实现生成PDF文件,VB使用控件DLL实现生成PDF文件.(VB,use dll made PDF file.VB,use dll made PDF file-.)
- 2013-03-28 19:11:39下载
- 积分:1