Cannot delete "filename": It is being used by another person or program.

Cannot delete "filename": It is being used by another person or program.

Close any programs that might be using the file and try again.
Occasionally you encounter some annoying program that just latches onto a file and doesnt let go.

I've noticed this with Yahoo Messenger 8's file transfer.
Alot of the time I only need to quickly send a screenshot saved on my desktop and then delete it.
After file transfer is complete, it is expected that Yahoo would let go of the file.
This is when a "handle" is not released by a program.

It may also occur when you are viewing your video files in Windows Explorer in thumbnail mode.
Some badly written codec plugins will hold onto a file when the thumbnail is requested, making it near damn impossible to delete the video!

In comes SysInternals' Process Explorer to save the day!
There is ALOT of stuff this program can do, but for the purpose of this post, we only need to close the necessary handle so we can delete stuff!
YAY FOR DELETING STUFF!

Download it, run it.
Click on "Find" > "Find Handle or DLL..." on the top menu.
Type in the filename you wish to unlock (not case sensitive) and click "Search".
Double click on the search result and it'll show you a handle to a "File".
Right click, select "Close Handle" and confirm.

If there were more than one result when you searched, repeat the process until the file is no longer locked.
 
Copyright © Twig's Tech Tips
Theme by BloggerThemes & TopWPThemes Sponsored by iBlogtoBlog