FileSystemWatcher例子
来源:互联网 发布:贪吃蛇java代码 编辑:程序博客网 时间:2024/06/03 08:04
class Program
{
static void Main(string[] args)
{
FileSystemWatcher wather = new FileSystemWatcher();
wather.Path = "I:\\";
wather.EnableRaisingEvents = true;
wather.Created += new FileSystemEventHandler(ste);//当文件create时触发的事件
Thread.Sleep(Timeout.Infinite);
}
public static void ste(object sender,FileSystemEventArgs e)
{
Console.WriteLine(e.FullPath);
}
}
}
{
static void Main(string[] args)
{
FileSystemWatcher wather = new FileSystemWatcher();
wather.Path = "I:\\";
wather.EnableRaisingEvents = true;
wather.Created += new FileSystemEventHandler(ste);//当文件create时触发的事件
Thread.Sleep(Timeout.Infinite);
}
public static void ste(object sender,FileSystemEventArgs e)
{
Console.WriteLine(e.FullPath);
}
}
}
0 0
- FileSystemWatcher例子
- FileSystemWatcher 用法
- FileSystemWatcher控件
- C# FileSystemWatcher
- C# FileSystemWatcher
- 使用 FileSystemWatcher 侦听文件
- FileSystemWatcher文件文件夹监听
- 用FileSystemWatcher监控作业。
- FileSystemWatcher控件监控目录
- System.IO.FileSystemWatcher 类
- 监视文件系统 FileSystemWatcher组件
- C# FileSystemWatcher 组件应用
- System.IO.FileSystemWatcher
- FileSystemWatcher 基础用法
- FileSystemWatcher之错误处理
- C# FileSystemWatcher用法详解
- C# FileSystemWatcher用法详解 .
- FileSystemWatcher用法详解
- Android三种方式解析Xml
- js获取项目名称
- Linux rpm安装MySQL
- 友盟社会化分享 ### 微信发送被拒绝 微信与朋友圈点击无响应
- opensip1.11.3 + centos 6.6 安装教程
- FileSystemWatcher例子
- (转)C++ stringstream介绍,使用方法与例子
- 编译内核
- 对于php.ini中常会触及到的"限制"总结
- 互联网硬件激烈暗战,乐视缘何突出重围?
- 025 函数的引用调用
- Deep Learning 学习笔记(二):神经网络Python实现
- tar解压缩命令
- Python基础学习笔记之(一)(华工大神)