I am not responsible if your devices send you back in time, explodes, implodes, bricks or flies into space from the use of any software I put up.


Friday, October 23, 2009

Delete Windows System Files

If you play around with Windows System Files sometimes it is not possible to delte them off after you had your fun.
The following commands will make it possible to force their removal:

For Files:

takeown /f file_name /d y
icacls file_name /grant administrators:F

For Directories (will perform action recursively):

takeown /f directory_name /r /d y
icacls directory_name /grant administrators:F /t

Of Course you need admin permission as always.

No comments: