you can look into  System.IO.FileSystemWatcher, but it doesn't do everything you want, actually, you should turn on file auditing

解决方案 »

  1.   

    部分功能可以用 System.IO.FileSystemWatcher实现,具体看帮助吧
    创建一个windows服务,使用FileSystemWatcher监控某目录下文件变化
      

  2.   

    呵呵,还是比saucer晚了一步:)to saucer大哥,文件审核是windows本身的功能吧?
      

  3.   

    FileSystemWatcher 只能知道文件被怎样改动了,但不知道是谁(用户的ID)改动的?
    我现在主要是想监控谁动了我的文件!
    当然打开audit是可以,但我必需读系统日志才行,能直接作到吗?
    请DX们指教!
      

  4.   

    一大堆,,,。
    http://www.google.com/search?hl=zh-CN&ie=UTF-8&c2coff=1&q=FileSystemWatcher+C%23&lr=