Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FileSystemWatcher
Message
From
08/03/2006 17:33:43
 
 
To
All
General information
Forum:
ASP.NET
Category:
Other
Title:
FileSystemWatcher
Miscellaneous
Thread ID:
01102632
Message ID:
01102632
Views:
60
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
Next
Reply
Map
View

Click here to load this message in the networking platform