我如何使用线程来跟踪文件夹 [英] How can i use thread to keep track the Folder

查看:96
本文介绍了我如何使用线程来跟踪文件夹的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我需要Windows服务的源代码,在这里我可以使用线程跟踪文件夹(n_Number),现在我也可以通过Timer控制该线程.
所以请帮帮我........我需要线程代码来跟踪
文件夹和计时器控制线程.在这里,他们不想使用File
观察者.


感谢Adv

Hi All,

I need source code for windows service, where i can keep track for folders(n_Number)using threading, Now this thread also i can control through Timer.
So pls pls help me.......... I need Thread code which keep track the
Folders and Timer which control thread. Here they dont want to use File
watcher.


Thanks in Adv

推荐答案

确定.有一个出色的即用型类System.IO.FileSystemWatcher,即 http://msdn. microsoft.com/en-us/library/system.io.filesystemwatcher.aspx [
Sure. There is an excellent ready-to-use class System.IO.FileSystemWatcher, http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx[^].

—SA


我写了一篇有关它的文章系列:

FileSystemWatcher-纯混沌(第1部分,共2部分) [ FileSystemWatcher-纯混沌(第2部分,共2部分) [
I wrote an article series about it:

FileSystemWatcher - Pure Chaos (Part 1 of 2)[^]

FileSystemWatcher - Pure Chaos (Part 2 of 2)[^]


这篇关于我如何使用线程来跟踪文件夹的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆