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
 
Back
Top