Hi!
I have to create an application (C# or VB.NET) which needs to watch a network folder and once a file is copied into that folder, it needs to rename that file and copy it into another folder.
The problem with the FileSystemWatcher class is that we don't know when exactly a file copy is complete in order to process (rename/copy etc.) that file.
e.g. A big 200 MB file is dragged and dropped into the watch folder the FileSystemWatcher will fire the Created/Changed event but at that point the OS has still not finished copying that file so I cannot really process it.
FileSystemWatcher fires events like Changed, Created, Renamed, Deleted but nothing like CopyCompleted or something like that so how should I go about doing this?
Sarosh
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement