Windows 7 Mods logo

How to Delete Inaccessible Files and Folders

win7-desktop

People who have upgraded from Vista to Windows 7, have encountered a few problems like some of their old files and folders from Vista are not deletable and inaccessible in Windows 7.

To get over it, you will have to take control on your previous folders/drives. Follow the steps below to take control of folders/drives in Windows 7.

How to Delete Undeletable Files in Windows 7

These two command line syntax will instantly aenable you to take ownership of such files/folders.

For Files:

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

For Folders:

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

The above mentioned commands will give full rights to the adminitsrator to use these files and folders. Make sure you are in an administrator account before using them.


If you liked this post: Subscribe by Email Subscribe via Email   or   Subscribe by RSS Subscribe via RSS