Sunday, December 13, 2009

Delete Undeletable Files in Windows 7

I know deleting/renaming/moving some files in Windows 7 can be quite tricky, annoying sometimes even.

Therefore, here's a little guide to solve this:

1) Press this combination:
Windows-Key + R

2) In this new window, type:
CMD

3) the old DOS-window will appear.

a) For Files:
    --> type this in:
takeown /f file_name /d y
icacls file_name /grant administrators:F
b) For Directories
    --> Type this in:
takeown /f directory_name /r /d y
icacls directory_name /grant administrators:F /t
As a directory name, you could use, for example, your C:\Windows or C:\Program Files folder, which will automatically solve any annoying with the UAC.

0 មតិយោបល់:

Post a Comment