• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 865
  • Last Modified:

monitor folder for new or modified files w/ c#

how is thte best way to have a program monitor a set of folders for new or modified files and then perform some action when that occurs?  is there a method that will be compatible on both xp and vista?
0
wrynn
Asked:
wrynn
2 Solutions
 
Frosty555Commented:
The most effective thing to do is use a FileSystemWatcher object. You should be able to drop one onto your form from the toolbox. It's part of the System.IO assembly.

Microsoft Reference:
http://msdn.microsoft.com/en-us/library/system.io.filesystemwatcher.aspx

Example:
http://articles.techrepublic.com.com/5100-10878_11-6165137.html
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Upgrade your Question Security!

Your question, your audience. Choose who sees your identity—and your question—with question security.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now