How to Delete Undeletable Files in Windows

Many times when trying to remove an unwanted program, especially a piece of adware or spyware, you may run across a file that is undeletable by any normal method. When you try to remove it you'll receive the error message shown below telling you "access denied" and explaining the file may be in use. You may also receive one of the following messages.

Cannot delete file: Access is denied
There has been a sharing violation.
The source or destination file may be in use.
The file is in use by another program or user.
Make sure the disk is not full or write-protected and that the file is not currently in use.


So if the file is in use, how do you delete it?

I'll show you several ways of removing these types of files and even some freeware programs that help you remove these pesky undeletable files.



Windows 95/98/ME

If you are using Windows 95, 98, or Windows ME, the easiest way to remove an undeleteable file is to boot to a DOS prompt and manually delete the file. Before you do this, you'll want to make a note of the location of the file including the entire path to it. Follow the steps below to delete these types of files.

If you already know the path to the file, please skip to Step 7

Click on Start, Find, Files and Folders
Type the name of the undeletable file in the Named or Search For box
Make sure the Look In box shows the correct drive letter
Click on Find Now or Search Now and let the computer find the file
Once the file is located, right-click on it and choose properties, make a note of the file location. Usually this is something similar to

c:\windows\system32\undeleteablefilesname.exe

Close the search box
Locate a boot disk for your version of Windows, if you do not have a boot disk, follow the steps on the link below to create an emergency boot disk.

How to Create an Emergency Boot Disk for Windows


Shut down and restart your computer with the boot disk in your floppy drive.
The computer will boot to a DOS prompt that will look similar to

c:\


Type the following command and press Enter to delete the filer, substituting the phrase with the actual path and file name you discovered in Step 5 above.

del

Example:

del c:\windows\undeleteablefile.exe

Remove the boot disk in the floppy drive and restart your computer
The file should now be deleted.
Windows XP

In Windows XP, there are a couple ways to remove an undeleteable file, a manual way, and a couple automated ways using some freeware programs. First, I'll show you the manual way.

Manual Method

If you already know the path to the file, please skip to Step 7

Click on Start, Search, All Files and Folders
Type the name of the undeletable file in the box shown
Make sure the Look In box shows the correct drive letter
Click Search and let the computer find the file
Once the file is located, right-click on it and choose properties, make a note of the file location. Usually this is something similar to

c:\windows\system32\undeleteablefilesname.exe


Close the search box
Click on Start, Run, and type CMD and Press Enter to open a Command Prompt window
Leave the Command Prompt window open, but proceed to close all other open programs
Click on Start, Run and type TASKMGR.EXE and press Enter to start Task Manager
Click on the Processes tab, click on the process named Explorer.exe and click on End Process.
Minimize Task Manager but leave it open
Go back to the Command Prompt window and change to the directory where the file is located. To do this, use the CD command. You can follow the example below.

Example: to change to the Windows\System32 directory you would enter the following command and Press Enter

cd \windows\system32


Now use the DEL command to delete the offending file. Type DEL where is the file you wish to delete.

Example: del undeletable.exe

Use ALT-TAB to go back to Task Manager
In Task Manager, click File, New Task and enter EXPLORER.EXE to restart the Windows shell.
Close Task Manager

Programs to automatically delete a file

Remove on Reboot Shell Extension>>CODE
http://www.snapfiles.net/rotation/abmc.asp?b=64&z=1



This is a nice extension that loads into the right click menu. All you have to do is right-click on a file and choose "Remove on Next Reboot" and the file will be deleted the next time the computer restarts. Although it probably should only be used by more advanced computer users since it may be TOO easy to delete files using this program.


Pocket Killbox

A simple .exe file that you can use to delete undeleteable files, although the program will also delete temporary files, edit the HOSTS file, and more. A definite must have program when you are fighting an annoying spyware or adware program that won't remove.

Unlocker>>CODE
http://ccollomb.free.fr/unlocker/unlocker1.8.5.exe


Unlocker is another program that runs from the right click menu. Its simple and very effective. The website even has a side by side comparision of other programs that accomplish this task.


Using one of the three tools shown above, you should be able to remove those annoying undeleteable files once and for all.

Comments

Anonymous said…
Good day !.
You re, I guess , perhaps curious to know how one can manage to receive high yields .
There is no need to invest much at first. You may start to get income with as small sum of money as 20-100 dollars.

AimTrust is what you haven`t ever dreamt of such a chance to become rich
The firm incorporates an offshore structure with advanced asset management technologies in production and delivery of pipes for oil and gas.

It is based in Panama with structures around the world.
Do you want to become really rich in short time?
That`s your choice That`s what you desire!

I feel good, I began to get income with the help of this company,
and I invite you to do the same. If it gets down to choose a proper partner who uses your savings in a right way - that`s AimTrust!.
I earn US$2,000 per day, and what I started with was a funny sum of 500 bucks!
It`s easy to get involved , just click this link http://zokaduret.virtue.nu/ykovuh.html
and go! Let`s take our chance together to get rid of nastiness of the life
Anonymous said…
Hello !.
might , perhaps very interested to know how one can reach 2000 per day of income .
There is no initial capital needed You may begin earning with as small sum of money as 20-100 dollars.

AimTrust is what you thought of all the time
The company represents an offshore structure with advanced asset management technologies in production and delivery of pipes for oil and gas.

It is based in Panama with affiliates around the world.
Do you want to become a happy investor?
That`s your chance That`s what you desire!

I`m happy and lucky, I began to take up real money with the help of this company,
and I invite you to do the same. It`s all about how to select a proper companion who uses your money in a right way - that`s AimTrust!.
I earn US$2,000 per day, and my first investment was 500 dollars only!
It`s easy to get involved , just click this link http://oniqopaji.100megsfree5.com/awexem.html
and go! Let`s take this option together to become rich
Anonymous said…
Hello!
You may probably be very interested to know how one can make real money on investments.
There is no need to invest much at first.
You may begin to get income with a sum that usually is spent
on daily food, that's 20-100 dollars.
I have been participating in one company's work for several years,
and I'll be glad to let you know my secrets at my blog.

Please visit blog and send me private message to get the info.

P.S. I earn 1000-2000 per daily now.

[url=http://theblogmoney.com] Online investment blog[/url]

Popular posts from this blog

Cantik 100% For Photoshop 7.0, CS2, CS3, Program Cantik & Perawatan Kulit buat PhotoShop

Trik mempercepat proses shut down Windows XP