How do I listen on a directory?

  • Thread starter Thread starter Haim
  • Start date Start date
H

Haim

I know it is possible to use a listener on a directory so
that if there is any change I can catch it and update my
application accordingly.
Anybody know or have a code example as for how to do this?

Thanks,

Haim.
 
Hi

Use FileSystemWatcher class. This monitors the file system and react when
the directories or files it contain got changed.

Regards
Sooraj PM
Microsoft Community Star
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top