unknown process randomly locking a file

YaroC 316 Reputation points
2022-03-03T20:02:37.41+00:00

I have a file that needs to be written to on some updates yet very often when reviewing the logs I can see the application needing to write to the file fails in doing so as it's locked by some other application at the time of update. I tried to use process explorer to see if I can pick the moment when the lock occurs but was unsuccessful. Locks are probably very brief. Is there some tool I could use to monitor the file to find out when what locks the file when a failed write occurs?

Windows for business Windows Server User experience Other
0 comments No comments
{count} votes

Accepted answer
  1. MotoX80 36,291 Reputation points
    2022-03-03T20:23:09.667+00:00

    You were on the right track. Use Process Monitor instead.

    https://learn.microsoft.com/en-us/sysinternals/downloads/procmon

    Set a filter to only capture events for "path contains your-file-name".

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.