I want to specify the FileSystemWatcher to check the files in the system has changed since a datetime:
FileSystemWatcher watcher = new FileSystemWatcher();
watcher.Path = @"C:\MyDirectory";
watcher.Changed+= new RenamedEventHandler(watcher_Changed)
watcher.EnableRaisingEvents = true;
How can I specify it such that: when the watcher is started, there are already existing files inside the folder. The fileSystemWatcher will get notified for the files are after a specific date time. how is it implemented with FileSystemWatcher? or if not, what is other alternatives?
Thanks in advance.
I found it:
before watching a folder using watcher.Notify, I have to check all of the files inside a folder if they are new then process them first.