登录
首页 » Visual Basic » filewatchservicetest

filewatchservicetest

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

  • CAREWELL
    VB.NET DEVELOPMENT, ASP.NET DEVELOPMENT
    2011-06-18 11:18:20下载
    积分:1
  • 实训
    vb+mapobjects进行二次开发,实现地图放大缩小,鹰眼等功能(VB + MapObjects for secondary development, map zooming and zooming, EAGLE-EYE and other functions)
    2020-06-24 14:40:02下载
    积分:1
  • 时间控制
    说明:  时间控制,可以自己随意得控制自己的时间,把时间任意延长(time control, it has to control their own free time, the arbitrary extension of the time)
    2006-02-07 15:20:14下载
    积分:1
  • VBModuleReader
    说明:  这个制作精良的编辑器可以阅读VB模块格式,并有相应函数处理模式(the production of sophisticated editors VB module can be read format, and have the corresponding function processing mode)
    2006-04-06 19:47:36下载
    积分:1
  • Stream
    精通Visual Basic.NET网络与输入输出技术方面的。(Proficient in Visual Basic.NET network and input-output technology.)
    2007-12-03 22:36:17下载
    积分:1
  • vbyinyue
    vb调用背景音乐,无音乐文件,实现调用内存来播放音乐(vb call background music, no music files)
    2011-09-28 16:38:02下载
    积分:1
  • CDDoor
    实现打开和关闭光驱功能,调用API实现,实现打开和关闭光驱功能,调用API实现(To achieve open and close the CD-ROM features, API calls, achieving open and close the CD-ROM features, API calls to achieve)
    2013-09-15 19:57:57下载
    积分:1
  • snecificationencapsulationallocate
    Windows API函数在Visual Basic中的应用实例(Application of Windows API function in Visual Basic)
    2018-12-04 00:43:05下载
    积分:1
  • Combat
    说明:  programa escrito en visual basic 6.0
    2019-03-20 05:09:11下载
    积分:1
  • xmodem
    说明:  采用Xmodem协议,搭建一个文件传输的窗体平台,进行文件传输(File Transfer Using Xmodem Protocol)
    2020-07-02 20:00:01下载
    积分:1
  • 696518资源总数
  • 105877会员总数
  • 14今日下载