Click here to Skip to main content
12,896,806 members (57,485 online)
Rate this:
Please Sign up or sign in to vote.
See more: VB VB.NET
I am looking for a way to take some weight off the coding side of things to use a system file watcher to trigger some events. Created, Renamed, Deleted, Changed are the main options but there are also others in the properties window such as file name, directory name, security and so forth. What is the easiest attribute or option to choose to say add a file to a list box that has just been accessed or how can I monitor a change to then trigger an event?

thank you in advance

'I know this post is a bit out of the box'
Posted 21-Jan-12 20:28pm
Dale 20121.8K
SAKryukov 22-Jan-12 2:32am
It looks like you know about the class FileSystemWatcher. What seems to be a problem? Just use it.

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

As SA have written, use FileSystemWatcher Class[^]

And read this CP article: FileSystemWatcher - Pure Chaos (Part 1 of 2)[^]

Gives a good inside info :-)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170424.1 | Last Updated 22 Jan 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100