|
项目描述: |
This program shows a very interesting .NET class, FileSystemWatcher. It enables you to monitor the file system for changes. A single file, a directory, even all files can be monitored. Basically, you create the class; then, you set the NotifyFilter, the starting path, the file name Filter, and event handlers for the events you want to monitor. Finally, you enable events. The event types are: changed, created, deleted, and renamed.
这个程序演示一个非常有趣的.NET类 FileSystemWatcher。它可以让你监视系统的变化。可以监视一个单独的文件、一个目录、甚至所有的文件。基本上先创建一个类,再设置NotifyFilter, 开始路径、文件名过滤器,以及需要监视的每个事件的句柄。最后再触发事件。事件类型有:改变、创建、删除和重命名。
来源: http://www.codeguru.com/cs_network/FileWatch.html |
类别: |
|
发布者:
cbd002
|
|
最新发布源码包 |
软件包 |
版本号 |
日期 |
本地下载 |
FileWatch |
 1.0  |
2004-04-12 |
下载 |
|
|