2

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

djsmiley2kStaysInside
  • 6,643
  • 2
  • 31
  • 43
Furkan Gözükara
  • 683
  • 5
  • 10
  • 23

3 Answers3

4

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).

Breakthrough
  • 34,227
  • 10
  • 105
  • 149
  • yes this program may solve but i am looking for windows related solution – Furkan Gözükara Jul 02 '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 02 '11 at 23:27
  • 2
    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 03 '11 at 02: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 03 '11 at 03:25
0

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?

KCotreau
  • 25,519
  • 5
  • 48
  • 72
0

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

surfasb
  • 22,452
  • 5
  • 52
  • 77
  • 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 03 '11 at 03:32