Click here to Skip to main content
Sign Up to vote bad
good
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:28
Dale 20121.8K

Comments
SAKryukov - 22 Jan '12 - 2:32
It looks like you know about the class FileSystemWatcher. What seems to be a problem? Just use it. --SA

1 solution

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
Your Filters
Interested
Ignored
     
0 Mohammed Hameed 268
1 OriginalGriff 236
2 Sergey Alexandrovich Kryukov 198
3 Mayur_Panchal 153
4 CPallini 100
0 Sergey Alexandrovich Kryukov 8,171
1 OriginalGriff 6,236
2 CPallini 3,482
3 Rohan Leuva 2,703
4 Maciej Los 2,234


Advertise | Privacy | Mobile
Web01 | 2.6.130516.1 | Last Updated 22 Jan 2012
Copyright © CodeProject, 1999-2013
All Rights Reserved. Terms of Use
Layout: fixed | fluid