登录
首页 » Visual Basic » filewatchservicetest

filewatchservicetest

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

  • vb.net
    用vb.net编写的一个学生成绩管理系统,实现成绩的浏览、增加、修改和删除功能。该系统充分利用了面相对象的三大特点:继承、封装和多态。可作为开发人员的参考和毕业设计学生作为毕业设计时的参考!(Management of student scores based on vb.net)
    2021-01-18 11:08:43下载
    积分:1
  • barcode2
    说明:  barcode reader whit serial com
    2020-05-05 08:43:21下载
    积分:1
  • VSFlexGrid
    VSFlexGrid 控件使用常见问题及解决方法对策(VSFlexGrid use questions)
    2013-10-08 15:41:53下载
    积分:1
  • Deal_Excel
    说明:  一个小例子 如何操作Excel 无条件添加数据(vb.net teach you how to add Excel)
    2020-06-16 23:20:01下载
    积分:1
  • supermap-vb
    幼儿园管理系统采用的开发语言是Microsoft Visual Basic 6.0,地理信息系统平台是北极超图公司的Supermap Object 5.0,数据库采用的是Microsoft Access数据库。(The kindergarten management system uses the development language is Microsoft Visual Basic 6, the geographic information system platform is the Arctic hypergraph company Supermap Object 5, the uses is the Microsoft Access .)
    2017-05-07 13:14:18下载
    积分:1
  • vb6-md5jia
    采用VB6.0编程的MD5加密算法。MD5就是采用单向加密的加密算法,对于MD5而言,有两个特性是很重要的,第一是任意两段明文数据,加密以后的密文不能是相同的;第二是任意一段明文数据,经过加密以后,其结果必须永远是不变的。前者的意思是不可能有任意两段明文加密以后得到相同的密文,后者的意思是如果我们加密特定的数据,得到的密文一定是相同的。(Using VB6.0 programming of MD5 encryption algorithm. MD5 is the use of one-way encryption algorithm, for MD5, there are two characteristics is very important, the first is any two plaintext data encrypted ciphertext, later not to be the same second is an arbitrary piece of plaintext encrypted data, then, the results must always be the same. The meaning of the former is unlikely to have any two plaintext after getting the same ciphertext, which means if we encrypt specific data, the encryption must be the same. )
    2013-08-30 14:50:25下载
    积分:1
  • howto_make_8bit_dib
    Make an 8-bit device independent bitmap (DIB) scratch
    2016-07-30 17:46:51下载
    积分:1
  • analyzeFunc
    自己vb.net写的从define文件生成函数和头文件的开发辅助工具,获取文件夹中test.h文件,生成C++程序.(Development aid, vb.net write their own generating functions and header files define file to get the the folder the the document in test.h to generate C++ program.)
    2012-09-28 14:21:17下载
    积分:1
  • ModbusRTU_Setup
    modbusRTU Communications with RS485
    2018-04-05 12:42:55下载
    积分:1
  • 3.3.3用户登录实例
    3.3.3用户登录实例,VB6.0 源码..学习中!!!!!(Documents are printed into PDF files)
    2020-06-23 16:20:02下载
    积分:1
  • 696518资源总数
  • 106227会员总数
  • 11今日下载