On Windows XP, When I try and delete a specific file it says :
Cannot delete blah.blah: Make sure the disk is not full or write-protected and that the file is not currently in use.
How can I go around this warning and delete it anyway?
|
On Windows XP, When I try and delete a specific file it says :
How can I go around this warning and delete it anyway?
| |||||||
feedback
|
|
To successfully delete a locked file, you will need to identify the process which has locked the file. You need to exit the process first and then delete the file. To know which process has locked a file you need a tool such as Microsoft Sysinternals' Process Explorer (PE). Once you have PE installed ...
You should see the list of applications which are accessing the file :
Now you can kill the offending process using PE or something else. | |||||
feedback
|
|
With Unlocker. You could also try booting into safe mode (or just rebooting) and see if you can delete it then. | |||||||||||
feedback
|
|
Try a program such as Unlocker (only available for x86). You can use it to see all the locks and remove them if you want. For x64, there might be similar programs as well. A more complicated and more general approach if there isn't is to use program such as Process Explorer, where you search for handles containing the file or program name, and delete all the handles you see. | |||
|
feedback
|
|
Seeing your comments, it's best to have a different antivirus do it for you then. All of the other files associated with it will also be removed from the system. Raven's answer is correct, of course, but if you're pretty sure the file is part of a worm/virus, it's better to have it deleted by an actual antivirus. | |||
|
feedback
|
|
When I have a file I can't delete, say from some application I wanted to try out, I reboot and see if I can delete it then. If that fails, I either:
This is one reason why I used Sandboxie(http://www.sandboxie.com/) to test new applications. Sanboxie makes it very easy to clean about the detritus of an application install. If you computer has been compromised, most security experts would strongly recommend that you clean install you system. If you have been infected by a Trojan:
Trying to manually clean a system is only possible in the luckiest of cases, and you never know if something was left behind. I would recommend not taking the chance. | |||
|
feedback
|
|
Unlocker is good, but personally I prefer MalwareByte's FileAssassin. | |||
|
feedback
|
|
I think the virus warning for Unlocker is bogus. I have used this program for years with no problems. It is supposed to redirect to ebay, but there are no ebay files on my computer. I would call this a false positive. Malwarebytes finds it clean. Correction: The ulocker site admits to putting ebay shortcuts in the program. Upon installation, they are OPTIONAL. | ||||
|
feedback
|