Click here to Skip to main content
15,898,222 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Comments
Sergey Alexandrovich Kryukov 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

As SA have written, use FileSystemWatcher Class[^]

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

Gives a good inside info :-)
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900