Thứ Năm, 22 tháng 10, 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.

Không có nhận xét nào:

Đăng nhận xét