-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