View Complete Post
I'm using a fileSystemWatcher to poll a certain folder for new files. The files placed in this folder need to get changed and placed in another folder. Sometimes the file isn't writte completely causing an error:
The process cannot access the file 'C:\\sharpspool\\input.jt' because it is being used by another process.
Is it possible to raise the fileSystemWatcher event only when the file is fully written and not in use by any other application?
Thanks for the help!
Hi, I wrote a Windows Service program that monitors two separate folders at the same time. Each folder is watched by a FileSystemWatcher. This program is single threaded. I need to confirm that this design works, and that it will not require
a multi-threaded program to handle such scenario.