-
filewatchservicetest
使用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)
- 2008-06-14 19:44:06下载
- 积分:1
-
shoujidayin
把手机的imei已一个中箱收集,并打印出该收集的一些信息。(Phone imei in box collection, and print out the collected information.)
- 2012-09-08 15:31:15下载
- 积分:1
-
socket
这是一个简单的socket编程例子,非常适合刚接触socket编程者。程序简单、可用、易于理解。是个很好的socket范例。(A simple socket programming examples. Suitable for beginners. Program is simple, available, easy to understand.
Is a good example of socket programming.)
- 2013-09-16 15:38:21下载
- 积分:1
-
caiseyu
设计一个程序,演示美丽的“池塘夜雨”景色:色彩缤纷的雨点飘飘洒洒地从天而降,滴滴入水有声,溅起圈圈微澜(Design a program that demonstrates the beautiful " pond night rain" scene: Durian colorful rain to fall from the sky, drops into the water with sound, the splashes circle Ripples)
- 2011-06-16 00:19:53下载
- 积分:1
-
multilang_src
用DLL实现多语言包,可以进行本地化开发(DLL used to achieve multi-language package, can be localized development)
- 2007-09-27 10:01:34下载
- 积分:1
-
splitter
基于单文档,分割windows窗口,设置分割的形式(Based on a single document, split windows windows)
- 2013-10-14 09:38:29下载
- 积分:1
-
CserialPort类源码
VC++简单而强大的多线程串口编程工具,该CSerialPort类封装了串口通信的基本 数据和方法(VC simple and powerful multithreaded serial programming tools, the CSerialPort type of serial communications package of basic data and methods)
- 2020-06-26 07:20:01下载
- 积分:1
-
knapsackproblem
有不同重量的物品n件,求从这n件物品中任取一部分物品放入背包,使选中的物品的总重量不超过指定的限制重量,但选中物品的价值之合为最大。即任意给定物品个数及它们的重量和价值,在最大的限制重量一定的情况下,为了使价值最大,选出最优解。(There are different weights of items n pieces from n items in order to obtain any portion of the goods into the backpack, so that the total weight of the selected items does not exceed the specified weight limit, but the combined value of selected items as the greatest. That any given number of items and their weight and value limits the maximum weight of certain circumstances, in order to value the most, select the optimal solution.)
- 2010-03-09 08:21:56下载
- 积分:1
-
eCan_Rx
基于DSP的CAN通信的接收过程,主要是在接收时使用该程序(DSP-based CAN communication reception process, mainly in the reception of the use of the program)
- 2017-05-13 20:10:54下载
- 积分:1
-
ELIZA_SDK
this is a implementation of a eliza a specialist system ps. experimental only
- 2009-06-13 23:46:10下载
- 积分:1