How do I detect if a file is copied or moved into a folder?
I have a watcher set on the folder with NotifyFilters.LastWrite
and a delegate on the Changed event.
It works if I save a file in the folder but not if I copy, move or paste it
there.
mash4077 - 29 Sep 2007 04:58 GMT
Perhaps the "renamed" event will let you know when the entire path of a file
has changed? Try the code
http://www.geekpedia.com/tutorial173_File-monitoring-using-FileSystemWatcher.html
and see if a FileSystemWatcher event fires when you move a file.
> How do I detect if a file is copied or moved into a folder?
>
[quoted text clipped - 4 lines]
> it
> there.