Link to home
Start Free TrialLog in
Avatar of basil365
basil365Flag for Ireland

asked on

Windows renaming files with extension tmp1 when dragging them to network share from desktop

Hi all,

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#

Many thanks

b
ASKER CERTIFIED SOLUTION
Avatar of strickdd
strickdd
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial