登录
首页 » Visual Basic » filewatchservicetest

filewatchservicetest

于 2008-06-14 发布 文件大小:330KB
0 243
下载积分: 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 个回复

  • Excel 2013 Developer Documentation
    Visual Basic for OFFICE APPLICATION(Explore Excel 2013 developer resources)
    2017-09-05 10:12:10下载
    积分:1
  • involute-gear-drawing
    通过VB编写的简易绘制齿轮渐开线的程序,运用了VB的各种基本控件(Easy draw gear involute program written in VB, the use of a variety of basic controls in VB)
    2012-05-04 09:32:53下载
    积分:1
  • OrderManageSystem
    说明:  可实现企业生产需求采购工具功能,带界面的企业管理信息系统(Enterprise management information system with interface can realize the function of enterprise production demand purchasing tool)
    2019-12-06 23:14:56下载
    积分:1
  • pdfdocscout_vb
    how to open pdf file within vb6
    2014-08-18 02:29:11下载
    积分:1
  • Suggest.plug.in.programming.VB.code.development
    VB开发Suggest插件编程经典代码Suggest plug-in programming VB Classic code development (Suggest plug-in programming VB Classic code development )
    2010-11-01 16:54:47下载
    积分:1
  • VB-TCPclient
    说明:  TCP/ip通讯客户端的程序。VB程序编写WINSOCK控件应用(TCP/ip messaging client program. VB programming WINSOCK Control Applications)
    2021-04-06 16:59:02下载
    积分:1
  • POK_HRS
    盘点抽取资料语句,用于盘点时使用,很方便很实用,总之好得不得了啦。(Inventory to extract information statement, when used for inventory, very convenient and practical, short too good to be incredible friends.)
    2012-08-10 17:32:59下载
    积分:1
  • 25513851
    这个应用程序允许你通过ping远程服务器来监控它们,并返回ping结果的信息()
    2017-11-04 22:36:21下载
    积分:1
  • VB写的通过串口与考勤机连接通讯的程序
    说明:  VB写的通过串口与考勤机连接通讯的程序,便于工作查看,调试。(VB written through the serial port and Attendance Machine Connection Communication Procedures, easy to see the work, debugging.)
    2020-02-22 18:58:03下载
    积分:1
  • max
    计算arcgis属性表中的各字段的最大值(Calculate the maximum field arcgis attribute table)
    2021-03-20 18:59:18下载
    积分:1
  • 696516资源总数
  • 106914会员总数
  • 0今日下载