Which program is using my file?

Occasionally I try to delete a file and am told by Windows (XP) that I can’t as the file is in sue by another program. Usually this is correct, but fairly often it’s some kind of error – I assume the program didn’t quit completely or whatever since I still get the message if I quit every program,

Is there a way to query a file and see what program is using it?

Process Explorer from Microsoft’s Technet will let you search for a file handle and tell you what process is using it.

When some program (usually antivirus) is gobbling up my USB stick so that I can’t eject it, I find that Unlocker works well for that. It will tell me what program is holding it and gives me the option to terminate the process. I am not sure if that is the best option for you but hopefully it helps. You do not need to terminate the program and can close in manually too once you know the name.

Usually, you can just delete it using DOS in a command prompt window.

You can check the task manager process tab and see which process is still running. This requires that you know the names the program uses for the process. It’s a good idea to periodically go through all the processes and start items to know what they are. Google for the names you don’t understand. Answers will come easily. I know that when I close Outlook Express, the process keeps running until I shut it down or shut the computer down. Firefox takes a long time to finally stop running too.

I also second Unlocker

It is a sign of the times. Software itself is getting litigious these days.