How can I tell what files are currently open by a process (i.e. my app)?

Posted by chaiguy on Stack Overflow See other posts from Stack Overflow or by chaiguy
Published on 2010-04-16T19:41:25Z Indexed on 2010/04/16 19:43 UTC
Read the original article Hit count: 176

Filed under:
|
|
|
|

I am using a Lucene.Net index and want to give the user an option to move the index, but am having trouble closing it down so the directory/contents can be moved (I keep getting access denied exceptions). I need to be able to have some more information so I can debug this problem, such as being able to tell what files are currently open, and as much information about each use as possible.

Alternatively, is there any way to simply force close a bunch of files so they can be moved? This would make things a lot easier to solve.

© Stack Overflow or respective owner

Related posts about process

Related posts about c#