What darn process is locking the file?
This is quite old, however very useful so I thought I would share it. Also I need to “get on the ball” and post something on my blog.
So, you try to delete a dll-file and get the error “could not delete the file because it is used by another process”. Often that process is Visual Studio so a simple restart does the trick. However, sometimes that does not cut it. So how to find the process:
- Open a command tool (as admin)
- Type tasklist /m nameofthelockedfile.dll
- View list.
For more help about tasklist, type tasklist /? for help.
Now that you have the image name, kill the process and go about your marry way.