Answer the question
In order to leave comments, you need to log in
How, using Win API functions or .NET classes, to check if a file is occupied by another application?
Actually, the same question: How, using the Win API functions or .NET classes, to check if the file is occupied by another application? I tried to do it through an IOException, but it works only if in my own program I open that file for reading, do not close it, and open it again. And if the file is opened, for example, with a notepad, then it does not determine.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question