What darn process is locking the file?

Published Tuesday, January 12, 2010 10:09 AM

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:

  1. Open a command tool (as admin)
  2. Type tasklist /m nameofthelockedfile.dll
  3. View list.

image

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.

Filed under: ,

Comments

No Comments

Leave a Comment

(required) 
(required) 
(optional)
(required)