Hi all,
Hopefully someone can help me find a solution to a problem i'm having.
I have an application that downloads files from an FTP site to a specified download location. The application then launches an SSIS package to process the downloaded directories. What i want to do is set up a FileSystemWatcher object to monitor the download directory. As the SSIS package processes the directories it removes them to an archive or quarantine location. As they are removed i want the FSW Changed event to fire and to update a label in the application to show the number of directories remaining in the download folder.
Can someone polease nelighten me as to how this can be done. At present the FSW Changed event doesn't seem to be firing and i don't knwo why.
Thanks in advance,
Grant

FileSystemWatcher to monitor directories not working.
tasleemarif
Hi,
You said that you want to know that when a file is remnoved from a monitored directory Handle Deleted event of filesystemwatcher. When a file is removed/deleted then changed does not fire but Deleted.
Hope it helps.
WolfgangEngel
I have done what you had suggested but it didn't seem to make any difference. What i have found that does work is using the Created and Delete fired events seems to work much better.
Thank you for your help.
Grant
scottmonte
Mixe
Make sure you have properly configured the File System watcher i.e double check if all events are attached to event handlers, you have set all possible filters you need and in last you have set FileSystemWatcher.EnableRaisingEvent = true
Best Regards,