I am currently using a FileSystemWatcher object in .NET to monitor a network share for newly created files. I was testing my application and it was working fine when I was creating new files in the network share (I was dragging and dropping from my desktop). However when I tested for a slightly larger file (approx 165KB) I noticed that when I dragged the file over, windows renamed the test.xml file to test.xml.tmp1 for a few seconds and then the file is renamed back to its original name.
The problem for me here is that the file.created event does not fire now in the FileSystemWatcher object. I may have to go down the route of monitoring for the renamed event but was wondering does anybody know why this is happening and any better solutions to the one I propose.
System: Win XP (64 bit), .NET 4.0, c#