First Viewpoint

Sunday, March 04, 2007

Deleting adamant files in Windows

I am sure once in a while you have run into a bad apple file which refuses to be deleted. I just had a few of such and after many efforts finally succeed. Here are some notes on this.

1) The simplest form is when the file is in use somehow, and that is why you cannot delete it. Particularly, video files come under this category. If even after closing the suspected programs still you are not able to delete it, reboot and you should be fine. If not: use either of the followings:

2) Another type happened to me due to an adware that affected a file in the folder. I deleted the infected file but the containing folder was giving me headache to be deleted. It would return "file cannot find" error message. The trick that works for these files or folders is to cut the folder and then paste it to the recycle bin. Then use recycle bins properties to decrease its capacity to zero, click ok. When the bad file is gone, restore the recycle bin's properties back to the original.

If you need to use the command line, note that the actual address of the recycle bin:
"On the older FAT file systems (typically Windows 98 and prior), it is located in Drive:\RECYCLED. In the NTFS file system (Windows 2000, XP, NT) it can be found in Drive:\RECYCLER, with the exception of Windows Vista which stores it in the Drive:\$Recycle.Bin folder."

3) The hardest type is when you want to delete a file that has a different ownership. This happened to me while using a shared folder being accessed by a remote computer, creating a guest ownership.This happened because I disabled and then enabled sharing of that folder and somehow the old guest wasn't the same as the new guest ownership (!!) You can see the owner of any file by using the detailed view mode and then using "view\choose details..." to check owner. None of the above methods works in this case. You only are able to modify such a file if you access it under that ownership (see here). Setting moveonboot to delete such file fails at the time of assignment.

0 Comments:

Post a Comment

<< Home