(source:http://www.blogsdna.com/2166/how-to-delete-undeletable-files-in-windows-7.htm)
In order to access the files and folder for manipulation, modification or deletion, we will need to take control of the files under Windows 7. Here are two command line syntaxes to instantly take ownership of such files,
For Files:takeown /f file_name /d yFor Directories (will perform action recursively):
icacls file_name /grant administrators:F
takeown /f directory_name /r /d y
icacls directory_name /grant administrators:F /t
Please keep in mind above syntaxes will grant full permission to administrator group hence you must be a part of administrator group to take advantage of above command.
Geen opmerkingen:
Een reactie posten