Method 1
- Open command Prompt window and leave it open.
- Close all running (active) programs.
- Click Start > Run.
- Key in “TASKMGR.EXE” (without quotes) in the Run window.
- Go to the Processes tab.
- End process Explorer.exe.
- Leave the Task Manager open.
- Go back to the Command Prompt window and change to the directory in which the undeletable file is located in.
- In the command prompt type “DEL
” (without quotes) where ‘filename’ is the file you wish to delete. - Now go back to Task Manager.
- Click on File > New Task.
- Enter “EXPLORER.EXE” (without quotes) to restart the GUI shell.
- Close Task Manager.
And thats it ! You have deleted the file safely. Visit the directory in which the undeletable file was located to verify that the file has been deleted.
Method 2
- Open Notepad.
- Click on File > Save As.
- Locate the folder where the undeletable file is located.
- Choose “All files” from the file type box.
- Click once on the file which you wish to delete so its name appears in the “filename” box.
- Put a ” at the start and end of the filename (it will overwrite it).
- Click on save.
- It will ask you to overwrite the existing file, then choose yes.
Now after doing so just locate the file and delete it as you delete any other file. The file will most probably be deleted.
Method 3
- Click on Start > Run.
- Type “command” in Run dialog box.
- Go to the directory in which the undeletable file is located. [type: cd c:xyz (xyz stand for your folder)]
- Once you are in the folder in which the non-deletable file is. Type in “dir” (without quotes) a list will come up with every file inside.
- Now delete the file by entering the file name.
If you cannot access the folder because it has spaces. For example, Program Files, in this case you will have to type only the first 6 letters then put a ~ and then 1 without spaces. Example: cd c:progra~1
An example of how to delete the file using command prompt: If your file name was temp jerry.bmp you would type once in the specific folder thorugh command, del tempje~1.bmp and your file should be gone (Make sure to type in the correct extension).
NOTE: This method may not work for all types of files especially virus files. I therefore suggest you to first use Method 1 and Method 2 first.
Method 4
If the above mentioned 3 methods fail, then just download this free utility. It will surely help you in deleting undeletable files. Moreover it’s also very useful when you have to delete virus file. This utility marks file for deletion and during next reboot. This method is based on documentation from Microsoft that describes a function called MoveFileEx.
You can download the freeware directly from their site DelLater.
No comments:
Post a Comment