Is there a programmatic way to determine whether the file is being used?

Posted by AngryHacker on Stack Overflow See other posts from Stack Overflow or by AngryHacker
Published on 2010-05-06T00:05:28Z Indexed on 2010/05/06 0:08 UTC
Read the original article Hit count: 192

Filed under:
|
|
|
|

Case and point: I need to open an Excel file via Interop and it would help a lot to avoid ugly COM errors if I knew that the file was in use.

Other than trying to open the file and catching the exception, is there a programmatic way to determine whether the file is in use?

© Stack Overflow or respective owner

Related posts about file

Related posts about in-use