Today I got the “The process cannot access the file … because it is being used by another process” error again, during a development build. And as long as the DLL is locked, itβs not possible to do a successful build.
Most sites and tips on the internet suggest to download some tool to detect which process is using the DLL. It seems that not many people are aware that, since Windows XP, we don’t need to download (or even pay for) a tool to detect this.
Just launch the windows console and navigate to the directory of the DLL. Now type “tasklist.exe /m locked.dll” and it will show you exactly which processes have loaded and locked this DLL.
Happy unlocking π
February 2, 2009 at 11:48 am
Good blog, very useful! Much more straightforward than procesmon.
April 8, 2014 at 10:43 am
Cool. Thanks man, very helpful.
April 17, 2014 at 8:23 pm
Good blog. it was quick to find this way. Thanks.