Coding Villa Forum
FAQs
Advertisements

What is File System Watcher and how can we use it to monitor file system changes in C#?

Iram Online 6/25/2012 5:12:55 PM

Hello Friends!

I am working on an application in C#. I want to notify my application's users or subscribers that a particular text files has been changed the particular directory.How can I do that task. Can I accomplish that task using FileSystemWatcher? If Yes then how? Please friends suggest me any easy but efficient way to perform that task.

Waiting for your guidance

Thanks

Share with Friends

Advertisements

Answer

Mehmood Online 6/27/2012 12:16:09 AM

Yes File System watcher is really built for this purpose.
You can monitor the files and directories through the usage of it.

download the demos from the referred links and further guide me about your requirements, if it doesn't fulfill your desired requirements (I 'll suggest you):

------------------------------------demo---------------------------------------------------

http://www.codeproject.com/Articles/26528/C-Application-to-Watch-a-File-or-Directory-using-F

http://www.codeproject.com/Articles/18521/How-to-implement-a-simple-filewatcher-Windows-serv

-----------------------------------msdn help-----------------------------------------------------

http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx
Share with Friends

Post reply

 

Enter This Code
Captcha
 

Subscribe

Email me when people reply


Subscribe to the