D
Distalgesic
I need to monitor a folder for files being dropped in and then process
the file and remove it from the folder.
I have got filesystemwatcher working OK for the files coming in, but I
can't seem to find a reliable method of telling me when the file has
stopped being copied in. Currently I'm doing a try/catch while opening
the file to see when I can get a hold of it but there must be a more
elegant method. I've looked at comparing file sizes, date and times
etc but with no luck.
Any ideas.
the file and remove it from the folder.
I have got filesystemwatcher working OK for the files coming in, but I
can't seem to find a reliable method of telling me when the file has
stopped being copied in. Currently I'm doing a try/catch while opening
the file to see when I can get a hold of it but there must be a more
elegant method. I've looked at comparing file sizes, date and times
etc but with no luck.
Any ideas.