Comments
Item

Cannot Delete File Bug - Tweak

Published in Windows XP Miscellaneous Tweaks by TweakXP Member with 5,178 views and 3 comments

For files that you want deleted permanently that are giving you the "cannot delete file... in use by another program"  message, when they are NOT in use by another program:

Let's restart the PC and hit F8 to reach the "Advanced Boot Options" menu.

From this menu choose "Safe Mode w/ Command Prompt", let it boot and log in normally to a local administrator account. Once logged in change directories to the location of the file in question. Once here let's use the "del" command to delete the problem file.

This method prevents the "explorer" shell from starting and "holding on" to the file.

 

 
Free Computer Magazines and eBooks
 
Comments
laur
2 years ago
You can also delete these files UNDER WINDOWS by obtaining a copy of a small program, 'Unlocker' (it has an orange wand icon) from this site:

http://www.snapfiles.com/get/Unlocker.html.

After download, I suggest you copy a ahortcut to this file into START->PROGRAMS->STARTUP.

Let me tell you how it works: AFTER starting Unlocker (having the tray wand icon active), try now to delete the file. Don't worry; just click OK and Unlocker will pop up and show you the locking handles. Select them all and click 'Unlock' or just click 'Unlock all'. DONE! Now you can delete the file without problems. No restart, no stress; this is the simplest option. TRY IT, IT'S REALLY GREAT!
Paulo Cezar
2 years ago
I was about to suggest the same! Unlocker is great and works like a charm. Everytime you can´t remove your USB drive, just use it and you´re done.
finn
One year ago
I also had problem like this. It was big headache for me for long time. But then I found www.deletelongfile.com, it saved me so much time!