0

Hey everyone,

I'm attempting to monitor a directory, including subdirectories, for changes and update a database. The database part I can do, I just cant figure out how to monitor the directory for changes.. any suggestions? Is there an easy way to do it like function.getChanges(directory)?? Microsoft seems to make things way to easy like that sometimes and maybe I'm just missing it.

Thanks,
barefoot

2
Contributors
2
Replies
3
Views
9 Years
Discussion Span
Last Post by Barefootsanders
0

You are quite right. There is a control called FileSystemWatcher that you can use. Unfortunately, this computer only has Visual C++ installed, so I can't really give you an example in C# (having never used the control before).

I'm not sure about the control's availability for WPF applications, but it i definitely there for Windows Forms.

0

Thanks for the help. I searched FileSystemWatcher and found just what I need. Thanks again!

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.