With C#, how can I find a specific process locking my text-file by Windows?

Posted by Junior Mayhé on Stack Overflow See other posts from Stack Overflow or by Junior Mayhé
Published on 2010-05-24T18:28:09Z Indexed on 2010/05/24 18:31 UTC
Read the original article Hit count: 285

Filed under:
|
|
|
|

Hi Folks

I'm trying to update a file using IsolatedStorage technique (it's a safe area to save a text file).

But something is locking the file, so my application is not able to update this text file.

Is there a way to find what Windows Process is locking my text-file with C#?

And perhaps, force kill this process?

thank you

© Stack Overflow or respective owner

Related posts about c#

Related posts about Windows