Is there a programmatic way to determine whether the file is being used?
- by AngryHacker
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?