Under Vista and Windows 7, the method for removing files without permissions is resolved
① Right-click the folder or file you want to delete--properties, and then security--advanced--owner.
② Point Edit--continue--other users or groups, enter your username in the name of the object you choose
(If you do not know the username you are currently logged in to, point to advanced-find it now, select your username, OK).
③ then chooses to replace the child container and the owner of the object, and if you do not select this, we will only have ownership of the folder, without the ownership of his subfolders and the files inside it (if only a single file can be deleted), and then apply--OK. This allows us to have ownership of this folder, since the ownership of this folder is system and does not belong to us.
④ permission-edit-Add, fill in your username (or use advanced-immediately find, OK), click on your username-edit, complete control/allow that tick, OK.
⑤ again "replaces existing inheritable permissions on all descendants with permissions that can be inherited from this object" tick. This is not a tick, you have only the outside folder permissions, the folder inside or not "full control."
⑥ then point application--OK--ok--OK.
Conclusion: After the above 6 steps, you can delete the file you want to delete Oh!