|
|
|||||||||
|
|||||||||
|
|||||||||
| |
|||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
|||
|
|||
|
I have an instance of the FileSystemWatcher Running on XP as an NT service. The filter is set to "Last Write". I only want it to fire an event if a file is created or modified in a specific directory, but if I copy and past a file to that directory, it raises multiple events. That is, it may fire off up to 4 times for the same file. Any reason why this could be or what I'm doing wrong?
thanks |
|
#2
|
|||
|
|||
|
Open a dos window and navigate to the directory you are monitoring.
type this: echo. > text.txt Now check how many events are fired.
__________________
__________________________________________________ _ Wil Moore III, MCP | Integrations Specialist | Senior Consultant Are You Listed...? | DigitallySmooth Inc. |
|
#3
|
|||
|
|||
|
I am not having this problem
I am using pretty much the same code on Win 2K Server with .Net v1.1. Here is a link to my code:
URL |
![]() |
| Viewing: Dev Articles Community Forums > Programming > Programming Tools > FileSystemWatcher Fires too Many Times |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|