We help IT Professionals succeed at work.

Win 7: Can't delete folder  because folder or file is open in another program

Very often I can't cut/paste or delete a simple windows folder because it reports  folder or file is open in another program....when I have closed every file and folder and any visible open programs. I have to reboot my PC in order to delete the folder. It's true I've had several open office documents from that folder but after saving and closing them I can't then move the folder by cut/paste. I can copy it to another location but can't delete the original.
Comment
Watch Question

Senior System Engineer
CERTIFIED EXPERT
Commented:

Commented:
Hi,

Try running process explorer from sysinternals (Microsoft).  It may direct you to the program that is holding on to the folder and files.  http://technet.microsoft.com/en-us/sysinternals/bb896653
Other alternatives to the above could be:

OpenedFilesView to locate the source of the file lock:
http://www.nirsoft.net/utils/opened_files_view.html

Unlocker to unlock files :
http://www.filehippo.com/download_unlocker/
Try to take ownership of the folder in properties then delete the files.  Security Tab, Advance, owner tab, click edit,  add yourself in here and make sure to check the box that the bottom replace owner on subcontainers and objects then apply.

Commented:
Close all apps and then run this fixit.

http://support.microsoft.com/mats/windows_file_and_folder_diag/


Reboot computer and check.



Ded9
Systech AdminChief Technology Officer
CERTIFIED EXPERT

Commented:
use unlocker utiltiy to unlock the files and folders, you can then kill the process who is using it.

Explore More ContentExplore courses, solutions, and other research materials related to this topic.