Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
FileSystemWatcher
Message
De
08/03/2006 17:33:43
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
FileSystemWatcher
Divers
Thread ID:
01102632
Message ID:
01102632
Vues:
61
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
Fil
Voir

Click here to load this message in the networking platform