-1
使用FileSystemWatcher
,如何跟踪是否跨多个目录创建了特定扩展的新文件?在多个目录中使用FileSystemWatcher
使用FileSystemWatcher
,如何跟踪是否跨多个目录创建了特定扩展的新文件?在多个目录中使用FileSystemWatcher
您只能包含子目录。监听其他目录中的变化,你需要更多的FileSystemWatchers
设置FileSystemWatcher.Filter Property的文件扩展名你感兴趣。
而且看一看的FileSystemWatcher.IncludeSubdirectories Property。
链接有一个例子。
好的,你可以给我的代码片段 – 2011-01-26 18:37:31
如果你可以使一个FileSystemWatcher你可以使两个或更多的权利? – 2011-01-26 18:46:27