登录
首页 » Visual Basic » filewatchservicetest

filewatchservicetest

于 2008-06-14 发布 文件大小:330KB
0 242
下载积分: 1 下载次数: 18

代码说明:

  使用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)

下载说明:请别用迅雷下载,失败请重下,重下不扣分!

发表评论

0 个回复

  • CSediter
    反恐精英生命修改器,作弊必备。Counter-Strike Life modifiers, cheating necessary.(Counter-Strike Life modifiers, cheating necessary.)
    2010-02-19 15:52:37下载
    积分:1
  • trim
    说明:  solidworks 二次开发 圆角命令的使用(Secondary Development Category)
    2019-06-11 08:40:47下载
    积分:1
  • qichekaiti
    汽车零部件管理开题报告,有价值可供大家参考,更多论文请见www.bysjaid.com(Car parts management opening report, valuable for your reference, more papers see www.bysjaid.com)
    2013-10-23 16:32:08下载
    积分:1
  • Serial-debugging
    该程序是串口调试代码程序,支持大多数操作系统(Serial debugging software source code)
    2016-07-01 09:43:24下载
    积分:1
  • Enrollment-Sample
    Enrollment system Enrollment Sample
    2012-10-22 18:31:35下载
    积分:1
  • 7-
    说明:  可乐精灵辅助源代码,.rar可乐精灵辅助源代码,.rar(Coke Wizard auxiliary source code,. Rar cola Wizard auxiliary source code,. Rar)
    2013-07-13 14:07:26下载
    积分:1
  • chat2
    视频通信 c#编程 可以正确运行 能够在局域网里进行视屏聊天(Video communications c# programming can be run properly in LAN chat screen)
    2012-06-12 11:24:27下载
    积分:1
  • dq
    读取CORS数据,重采样成30秒,计算电离层总电子含量(Read CORS data, resampling into 30 seconds, calculate the total electron content of the ionosphere)
    2016-08-22 10:09:01下载
    积分:1
  • Plugin
    VB插件编写示例及调用演示源程序,有需要的就下.(VB demo source plug-ins writing sample and call, is in need.)
    2013-07-28 08:12:48下载
    积分:1
  • update-online
    一套完整的在线升级程序,只需修改配置文件即可成为自己的升级程序。(A complete set of online upgrade program, simply modify the configuration file to become their own upgrade process.)
    2013-09-18 09:28:45下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载