windows - Best practice to monitor a folder in C# -


i know question subjective, think might valid question ask.

i want create program watches folders on file server. program runs on server, network folders don't have monitored. want event in case folder/file gets deleted, moved, created , such. these information written disk (where network users can't access it). need name of file, , user caused it, , maybe more info, that's minimum requirement now.

  1. in c# can use filesystemwatcher-class, unreliable. (examples can found around stackoverflow lot.)

  2. we use auditing feature of windows 7 professional (which running on), gives many, many confusing entries in system log. can't reliable information those.

  3. third, 1 poll files , compare. kind of brute force attack omit. also, other methods might realtime, 1 not.

so, think of combining 1. , 3., , maybe 2., too, clean, way this?


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -