1
Answer

FileSystemWatcher and copy file

peleg k

peleg k

13y
2.8k
1
1) i am using FileSystemWatcher  to get an event when a new file is copied to my monitored folder.
the problem is, that i want to copied this new file, but if its 100MB file, i will get an error that the file is in use! - os there a way to check that the file has finished coping before it try to copy it?

2)i am holding an array of instances of FileSystemWatcher , and i want with each instance that i put in the array to save some more data - how can i do it?
Answers (1)