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: 187
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