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.
in c# can use filesystemwatcher-class, unreliable. (examples can found around stackoverflow lot.)
we use auditing feature of windows 7 professional (which running on), gives many, many confusing entries in system log. can't reliable information those.
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
Post a Comment