Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: 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
Comments
SAKryukov at 22-Jan-12 2:32am
   
It looks like you know about the class FileSystemWatcher. What seems to be a problem? Just use it.
--SA

1 solution

Rate this: bad
good
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 Smile | :)
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 494
1 CPallini 325
2 OriginalGriff 225
3 George Jonsson 130
4 ChauhanAjay 104
0 OriginalGriff 6,464
1 Sergey Alexandrovich Kryukov 5,915
2 CPallini 5,175
3 George Jonsson 3,559
4 Gihan Liyanage 2,522


Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 22 Jan 2012
Copyright © CodeProject, 1999-2014
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