登录
首页 » Visual Basic » filewatchservicetest

filewatchservicetest

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

  • ANSI-S3.4-2007
    moore响度官方计算程序,提供给需要的人(official moore caculation procedure)
    2021-03-24 08:29:15下载
    积分:1
  • vbbatzs
    VB6.0批量打印证书,本源码不但可以作为证书打印的例子,还可作为证书界面设计的例子,虽然还不是很精美,但至少来说给出了一个Vb证书设计的大致框架,对需要此方面要求的VB编程者是个参考。(VB6.0 batch printing certificates, the source not only can be used as certificate printing example, also can be used as a certificate interface design examples, though not very elegant, but at least it gives a framework design of Vb certificate of need, the requirements of the VB program is a reference.)
    2014-03-10 16:23:40下载
    积分:1
  • vb
    说明:  竖曲线vb编写的 简单的程序 可以适合初学者。为以后打好基础,多学多看、(Vertical curve to prepare a simple VB program can be suitable for beginners. Lay a good foundation for the future, to learn more, )
    2014-02-28 02:00:34下载
    积分:1
  • prestressing-tendon-to-midas-
    midas钢束导入工具采用vba编码 附加lsp直线连接(prestressing tendon to midas tool)
    2021-03-02 22:19:33下载
    积分:1
  • dll
    说明:  PLC动态库 vb编程 支持s7-1200(PLC Dynamic Library Support s7-1200)
    2019-04-08 20:40:41下载
    积分:1
  • Neighbor-search-method
    一种用近邻搜索法解决VRP问题的源代码,可以解决多种问题(Source code of a nearest neighbor search method to solve the VRP problem)
    2012-03-07 16:49:46下载
    积分:1
  • PLCActiveX
    Omron & Keyence PLC Active X(Aicon PLC HMI This easy-to-use PLC ActiveX driver demonstrates: 1.1 Writing 10 words PC to selected PLC (Omron & Keyence) 1.2 Reading 10 words selected PLC to PC or Reading 10 x 16 bits selected PLC or both 1.3 Properties allow user define any Read/Write address, COM Port setting. Click PLCActiveX.zip to download the amazing Aicon PLC HMI.. The PLCActiveX is fully functional with its detail description Readme.txt. It contain executable for that ready to run for PLC IO check and VB6 working example where user can simply use it as background to read/write PLC using PC. )
    2014-10-09 10:07:40下载
    积分:1
  • STATISTIQUES
    calculating the minimum and the maximum of a vector
    2015-02-06 23:23:54下载
    积分:1
  • VBCRC16
    自己做的CRC16校验例子,输入16进制数据,数据之间用空格,得到校验字节(The CRC16 checksum own example, enter the hexadecimal data, with a space between the data check byte)
    2012-10-12 08:45:27下载
    积分:1
  • antennas.zip
    一个很小和天线计算程序,我觉得非常实用,发上来与大家分享(A very small and the antenna calculation program, I think very useful, the table to share with you)
    2008-04-14 20:58:52下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载