I'm using Windows 8.1 and I'm trying to delete a folder on a secondary hard drive. I tried a things that I had read here, but nothing seems to be working.
Here's what I've done:
Tried
rd
command in Windows Powershell to remove the folder. It said access denied.Right click the folder, clicked Properties, Security, Advanced and I see that there is no owner of the folder. This is odd.
The folder is set to read-only and I cannot change it to archive because i get access denied.
I tried making a delete.bat file with the following in it:
SET DIRECTORY_NAME="D:\xampp\htdocs\webfolder\!ARCHIVE\httpdocs\sites\default\files" TAKEOWN /f %DIRECTORY_NAME% /r /d y ICACLS %DIRECTORY_NAME% /grant administrators:F /t PAUSE
I run this as Admin and it does not work, i get a access denied error. Weird.
The last thing i tried was in Windows Powershell ran as Admin, I used this command:
icacls files /reset /T
I just tried this too and i get access denied, so i cant takeown of it.
takeown /f <directory> /r
I get Access Denied.
Can someone help? I'd really like to remove these folder from my computer.