是否可以使用WF4编程文件监视器/监视程序应用程序? [英] Is programming a File Monitor/Watcher Application with WF4 possible?

查看:57
本文介绍了是否可以使用WF4编程文件监视器/监视程序应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我需要知道是否可以使用WF4 Visual Studio 2010开发应用程序来跟踪指定文件夹/目录中指定类型的文件活动.
请给我有用的材料/链接,以帮助我学习和实施此方法.
识别文件事件的示例应用程序可能会很有帮助.如果可能,还可以读取文件内容.

这是与此主题相关的链接-
http://msdn.microsoft.com/en-us/library/ms741707 (v = VS.90).aspx

http://social.msdn.microsoft.com /forums/zh-CN/windowsworkflowfoundation/thread/ffbdf933-0d26-4748-8250-781128fa2e97/

在此先感谢
Codrenalin.

Hey
I need to know if it is possible to develop an application to track file activity for a specified type in a specified folder/directory using WF4 Visual Studio 2010.
Please give me helpful material/links to help me learn and implement this.
A sample application to identify file events and if possible also read the file content should be helpful.

Here are relevant links to this topic -
http://msdn.microsoft.com/en-us/library/ms741707(v=VS.90).aspx

http://social.msdn.microsoft.com/forums/en-US/windowsworkflowfoundation/thread/ffbdf933-0d26-4748-8250-781128fa2e97/

thanks in advance
Codrenalin.

推荐答案

文件监视是文件监视,无论您可能具有任何受MS启发的勃起.这是我写的一系列文章,讨论了FileSystemWatcher对象(这是您将使用的机制):

FileSystemWatcher-纯混沌(第1部分,共2部分) [ FileSystemWatcher-纯粹的混乱(第2部分,共2部分) [
File monitoring is file monitoring, regardless of whatever MS-inspired erection you might have. Here''s a series of articles I wrote that talks about the FileSystemWatcher object (which is the mechanism you would use):

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

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


我终于弄清楚了如何做到这一点.在罗恩·雅各布斯(Ron Jacobs)的9频道中转到下面的链接以获取代码示例.
http://archive.msdn.microsoft.com/FileSystemWatcherWF4 [
I finally figured out how to do this based on a channel 9 episode by Ron Jacobs. Go to link below for code example.
http://archive.msdn.microsoft.com/FileSystemWatcherWF4[^]


嗨 多谢您的回覆.根据我的观察,您已经使用System.IO.Filesystemwatcher类来实现文件监视逻辑.
但是,我专门在寻找一种纯粹的Windows Workflow Foundation方法来监视文件和读取它们.类似于工作流"活动/控件之类的东西,它们接收"受监视文件夹中特定类型的文件消息".

我期待使用WF4和Visual Studio 2010满足上述要求的任何指导/帮助,尤其是代码示例/说明.
在此先感谢
代码.
Hi Thanks for ur kind reply. From what I have observed, you have used System.IO.Filesystemwatcher class to implement the file monitoring logic.
However, I am specifically looking for a pure Windows Workflow Foundation way to monitor files and read them. Something like Workflow activities/controls that "Receive" file "messages" of specific types in the monitored folder.

I am looking forward to any guidance/help especially code samples/explanation for the above requirement using WF4 and Visual Studio 2010.
thanks in advance
Code.


这篇关于是否可以使用WF4编程文件监视器/监视程序应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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