Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Possible Duplicate:
Windows 7: File In Use when deleting file

I searched via google and saw that many people have this problem but no definite problem. It says it is in use with explorer but it is not. Do you know any solution without killin explorer exe and delete via cmd command

share|improve this question

marked as duplicate by random Jul 3 '11 at 2:35

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

up vote 4 down vote accepted

Give the program Unlocker a shot. Not only is it free and compatible with all versions of Windows from 2000 up to 7, it allows you to "unlock" file handles from processes without terminating them (of course, you are also given the latter option).

This is the only utility I've found to date which allows you to do this (unlock file handles without terminating processes or rebooting a computer).

share|improve this answer
yes this program may solve but i am looking for windows related solution – MonsterMMORPG Jul 2 '11 at 23:26
This is a Windows program. Install it (or download the portable version if you don't like installing stuff), try to delete the program, and it should pop up automatically. Then just click "Unlock" and try to delete it again. Let me know what happens. – Breakthrough Jul 2 '11 at 23:27
MonsterMMORPG, you dont want to kill Explorer, you dont want to use Unlocker, you dont want to use the cmd shell... I think unlocker is the way to go, it's and EXCELLENT utility – Alex Angelico Jul 3 '11 at 2:03
Unlocker has both a shell-extension to allow you to view open handles to a file and close them on demand, and a background app that detects when you try to delete a locked file and pops automatically pops up its window. In any case, be aware that forcibly closing a handle to a file (whether or not you subsequently delete it) will probably lead to the program that had the open handle crashing at some point. You may not want to kill Explorer, but its almost certain that it will eventually crash if you force one of its handles closed. – Synetech Jul 3 '11 at 3:25

Boot into Safe Mode Command Prompt Only. Then change to the directory and delete the file. Are you sure the file is not important to Windows' operation?

share|improve this answer
What is the name of the file? – KCotreau Jul 2 '11 at 23:14
i read thorugh internet and some says that even safe boot is not solving the issue – MonsterMMORPG Jul 2 '11 at 23:14
KCotreau file is mkv name is standart english letter – MonsterMMORPG Jul 2 '11 at 23:15
Normal Safe Mode it may not, but you probably will in Safe Mode Command Prompt Only. There is no GUI. You just boot to a command prompt. – KCotreau Jul 2 '11 at 23:17
cmd command is working but a very hard solution and too much time consuming – MonsterMMORPG Jul 2 '11 at 23:26

SysInternal's Process Explorer also closes handles. Also free. Unlike Unlocker, it does NOT require an install.

share|improve this answer
Unlocker has a portable version (if you’re willing to forgo the shell-extension and tray-assistant). Yes, Process Explorer can let you view and close handles, but I for one consider it way overkill for that one purpose, and even if you have other uses for it, using it specifically for this purpose is more work than it’s worth (especially when other tools can do it quicker). – Synetech Jul 3 '11 at 3:32

Not the answer you're looking for? Browse other questions tagged .