Jan 15, 2011 07:11 PM
(This post was last modified: Jan 15, 2011 07:24 PM by J4mmy.)
Hello,
I will present you a powerful method to remove locked/undeletable files from your computer that have given you headache and made you frustrated as nothing have worked.
Requirements
Install Unlocker 1.9.0 (If you have not already installed it). Now right-click the locked/undeletable file/folder and click on Unlocker. Now the file should be unlocked (or if it does not contain locks, you will be represent with ability to choose what action you would like to perform with the file.) and now we want to bring up Command Prompt with Administrative Rights.
For this part i will be showing what to do with each, files and folders. Okay so first up is files, click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as Administrator.
Type the following command and press ENTER:
(Replace the text <filename> with the full path of the actual file.)
If the operation was successful, you should see the following message:
Then to assign the Administrators group Full Control Permissions for the file, you may use the ICACLS command. Use this syntax:
Now you are able to delete the file that has been giving you headaches and frustration :)
Okay, next up folders. Again open up Command Prompt with administrative rights. Then use the following syntax:
Then to assign the Administrators group Full Control Permissions for the folder, use this syntax:
The /T parameter is added so that the operation is carried out through all the sub-directories and files within that folder.
Now you should be able to delete the folder that was before locked/undeletable.
Source for the explanation of the commands: http://www.winhelponline.com/blog/take-o...s-7-vista/
I hope this helped you out with deleting the files that was not before able to of being deleted! All kind of feedback is appreciated.
Cheers,
J4mmy
I will present you a powerful method to remove locked/undeletable files from your computer that have given you headache and made you frustrated as nothing have worked.
Requirements
- Unlocker 1.9.0
- Command Prompt
- Administrative rights
The Process of Deletion
Install Unlocker 1.9.0 (If you have not already installed it). Now right-click the locked/undeletable file/folder and click on Unlocker. Now the file should be unlocked (or if it does not contain locks, you will be represent with ability to choose what action you would like to perform with the file.) and now we want to bring up Command Prompt with Administrative Rights.
For this part i will be showing what to do with each, files and folders. Okay so first up is files, click Start, click All Programs, click Accessories, right-click Command Prompt, and then click Run as Administrator.
Type the following command and press ENTER:
Code
TAKEOWN /F <filename>If the operation was successful, you should see the following message:
Code
"SUCCESS: The file (or folder): "filename" now owned by user "Computer Name\User name"."Code
ICACLS <filename> /grant administrators:FNow you are able to delete the file that has been giving you headaches and frustration :)
Okay, next up folders. Again open up Command Prompt with administrative rights. Then use the following syntax:
Code
takeown /f <foldername> /r /d yCode
icacls <foldername> /grant administrators:F /TCode
Command-line help: To know more information about the above commands, run these commands from a Command Prompt window.
takeown /?
icacls /?Now you should be able to delete the folder that was before locked/undeletable.
Source for the explanation of the commands: http://www.winhelponline.com/blog/take-o...s-7-vista/
I hope this helped you out with deleting the files that was not before able to of being deleted! All kind of feedback is appreciated.
Cheers,
J4mmy
Knowledge speaks, wisdom listens


