I have a VB.NET application that is using the FileSystemWatcher. When a file (a video) is created (and ready) I want to move it to another folder. However, the problem I'm having is that the FileSystemWatcher Created event fires when the 3rd party app (which does a conversion on a video) STARTS to write the new file, but not when it has completed. So, when I try and move the file, obviously it's locked.
Is there anyway to tell when the file is no longer open by another process? Is there anyway that the FileSystemWatch can handle this?
I know that I could grab the file, put it in a queue and with a timer, try and access it every so often, then when successful, I would know it's ready. But this way just seems a little hokey.
Thanks in advance.