有人知道怎么实现文件的打开关闭等的跟踪啊??急!

解决方案 »

  1.   

    这个恐怕比较麻烦。
    可以写一个磁盘驱动来截获操作系统对文件的打开和关闭——得用c写了。另外:
    .net 的FileSystemWatcher 类可以监控文件的变化。你可以使用其Change事件,
    The types of changes include: changes to size, attributes, security settings, last write, and last access time.
      

  2.   

    使用工具箱--组件栏上的FileSystemWatcher可以实现
      

  3.   

    FileSystemWatcher 可以轻松实现