Thursday, April 25, 2013

Delete Undeletable File in Windows





How to delete undeletable files in windows?
You would have many times run into a situation where you wanted to delete a file, but Windows  didn’t allow you to do it. These thing have happened with me several times.
This happens because explorer.exe locks the files which are in use, Usually, such files should not be deleted but situations may arise when you need to delete the files.
Fortunately, there are a few easy solutions to delete the undeletable files.
 1st Mehod : Kill explorer.exe
  1. Open the command prompt
  2. Go to the location where the locked file is(using basic commands of cmd like cd and cd..)
  3. Open the task manager (ctrl+alt+del  or right click on task bar and select 'start task manager' )  , select the Processes tab
  4. Right click on the explorer.exe process and select “End Process” button
  5. Go back to the command prompt and type "DEL <filename>" without quotes and replace <filename> with the name of the file you want to delete.
  6. Bring up the task manager windows again
  7. Select file->new task
  8. Type explorer.exe in the “create new task” field
  9. Press OK.
 Method 2 : Use unlocker (Need software)
Unlocker is a very useful freeware that will allow you to unlock any files that are currently in use by Windows. You’ll know if this is happening if you are getting any of these messages when trying to delete a file:
    • 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
Unlocker will make things right again for you.
You’ll notice that right after installing the software, a new option named “unlocker” will appear when right clicking any files or folders in Windows Explorer. To unlock a locked file, just right click it, select unlocker, and the unlocker software will start. Then, click “unlock all” and close the software. Now that your file is unlocked, just delete it in Windows Explorer, as you always do.


Hope you are happy now...





No comments:

Post a Comment