文件系统观察者替代VB.NET [英] Filesystem watcher alternative VB.NET

查看:106
本文介绍了文件系统观察者替代VB.NET的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找能够更好地获取事件和更多事件的文件系统观察者替代方案。例如,创建文件或进入系统,比文件系统观察者更快地重命名或删除文件。另外,我如何让它观看所有驱动器(整个系统)基本上是一个更快或更有效的文件系统观察器。哦,如果一个文件打开(不重要)预先感谢!



我尝试过:



我曾尝试搜索这些新的事件功能,并使其更快,但到目前为止并不多: - (

解决方案

它没有'存在。



你正在使用FSW来做它不适用的东西,NTFS也不支持。



FSW轮询数据意味着它查找的内容与上次浏览文件夹时的内容不同。因此,要遍历驱动器的整个目录树需要一段时间。由于所涉及的时间,它会在观看和整个驱动器时错过东西。



这是为了查看单个文件夹的更改,而不是整个驱动器。

im looking for a filesystem watcher alternative thats picks up events better and more events. For example the secound a file is created or enters the system, gets renamed or deleted faster then a file system watcher. Also how can i make it watch all drives ( the entire system) Basically a faster or more effective filesystem watcher. Oh and if a file is opened(not as important) Thanks beforehand!

What I have tried:

Ive tried searching for theses new event features and to make it faster but so far not much :-(

解决方案

It doesn't exist.

You're using the FSW for something it wasn't designed for, nor does NTFS support.

The FSW polls for data meaning it looks for things that are different from the last time it went through the folder(s) it watching. So, to walk the entire directory tree of a drive takes a while. Due to the time involved, it WILL miss stuff while watching and entire drive.

It was meant to look at a single folder for changes, not an entire drive.


这篇关于文件系统观察者替代VB.NET的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆