Click here to Skip to main content
15,881,248 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
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.
Posted
Comments
Sergey Alexandrovich Kryukov 28-Feb-11 21:00pm    
By your first reference one can see the question is about .NET implementation. In this case, add .NET tag to the question, if not, please explain what are you interested in.
--SA

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)[^]
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 28-Feb-11 21:01pm    
My 5 assuming OP need .NET.
--SA
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[^]
 
Share this answer
 
v2
Comments
Vivek Krishnamurthy 28-Jun-11 15:32pm    
Nice!
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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900