问题描述
你好,女士们,先生们。
我的问题听起来很简单,我有一个我想要监控的文件夹。在 无变化 之前,程序不关心该文件夹。我最初的想法是使用 FileSystemWatcher 作为带有if语句的扫描程序(发现可能不可能)。
注意:我这样做是作为控制台应用程序。
任何人都可以指出我正确的方向,如果这似乎是一个死胡同。
请。
我有什么试过:
https://docs.microsoft.com/en-us/dotnet/api/system.io.filesystemwatcher.changed?view= netframework-4.7.2
Hello, ladies and gentlemen.
My problem sounds quite simple, I have a folder that I want to monitor. The program doesn't care about that folder until there is no change in it. My initial thought was to use FileSystemWatcher as a scanner with an if statement (found out that may not be possible).
Note: I'm doing this as a console application.
Can anyone point me in the right direction, if this seems like a dead end.
Please.
What I have tried:
https://docs.microsoft.com/en-us/dotnet/api/system.io.filesystemwatcher.changed?view=netframework-4.7.2
这篇关于可以使用filesystemwatcher双向检测变更和检测无变化。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!