The process cannot access the file "C:\xx.txt"



I am using a
watcher_FileCreated(object sender, FileSystemEventArgs e) event to detect
new files within a folder.

When I copy a file or files from another folder to this folder, sometimes I
get an "The process cannot access the file "C:\xx.txt" because it is being
used by another process" error. I'm thinking that the process copying the
file over hasn't relinguish control over the file. How can I detect that the
process has completed and released the resource ?

Thanks in advance

regards,
Andrew
.



Relevant Pages

  • Re: file system watcher
    ... > folder to check when a new image is taken by the camera. ... >> private void myWatcher_Created(object sender, FileSystemEventArgs e) ...
    (microsoft.public.pocketpc.developer)
  • Re: Disappearing Links
    ... I believe someone has a script for rebuilding links but I'm unable to find it at the moment. ... It could be adapted to trawl through the whole mail folder tree - if you really need that, ... -- to any contacts in the address book that match the sender of the messages ... set theSelection to selection ...
    (microsoft.public.mac.office.entourage)
  • Re: OT--message rules question
    ... to the folder, so the crap that's there remains there. ... It is literlly hundreds of posts regarding sex ... I tried blocking the sender. ... I haven't found a way to filter on message bodies with X- ...
    (alt.sys.pc-clone.dell)
  • Re: Help with Outlook rules not working as expected
    ... I know the sender is in the contacts because I created a created a test contact from an email that I received from another one of my email accounts. ... In all cases, I'm moving, not copying. ... Apply this rule after the message arrives ... move it to the 'Deleted Items' folder ...
    (microsoft.public.outlook)
  • RE: Posting in a public folder / changing sender name.
    ... "Sender" name. ... > You say you don't have Exchange, but you're using a Public Folder?? ... > Using Collaboration Data Objects in Microsoft Outlook and Microsoft ...
    (microsoft.public.outlook.program_vba)

Loading