Possible Duplicate:
How does one figure out what process locked a file using c#?
When you try to open a locked excel file, for example, you see a message displaying the name of the user currently using the file. How do I get the same info using .NET?