Jump to content


 


Register a free account to unlock additional features at BleepingComputer.com
Welcome to BleepingComputer, a free community where people like yourself come together to discuss and learn how to use their computers. Using the site is easy and fun. As a guest, you can browse and view the various discussions in the forums, but can not create a new topic or reply to an existing one unless you are logged in. Other benefits of registering an account are subscribing to topics and forums, creating a blog, and having no ads shown anywhere on the site.


Click here to Register a free account now! or read our Welcome Guide to learn how to use this site.

Photo

Unable to Delete Folder Even as Owner; Really Confused


  • Please log in to reply
2 replies to this topic

#1 dxandbatista

dxandbatista

  • Members
  • 14 posts
  • OFFLINE
  •  
  • Local time:11:55 PM

Posted 16 December 2013 - 04:22 PM

So my Avast has been acting up lately (can't bring it up) so I decided to uninstall it. Its folder on the C Drive was still there though, so I tried deleting it but I can't as it keeps giving me the 'Folder Access Denied' message where it says 'You require permission from Users to make changes to this folder'.

 

So I go to the advanced security settings for the folder and set 'Users (****-pc\Users)' as owner, but it still says that my access level is 'Read & execute' only, not 'Full control'. I still can't delete the folder; what the heck is happening?  



BC AdBot (Login to Remove)

 


#2 cryptodan

cryptodan

    Bleepin Madman


  • Members
  • 21,868 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:Catonsville, Md
  • Local time:04:55 AM

Posted 16 December 2013 - 05:16 PM

Can you try this: http://www.filehippo.com/download_unlocker/

Also where is the folder located?

#3 JohnnyJammer

JohnnyJammer

  • Members
  • 1,117 posts
  • OFFLINE
  •  
  • Gender:Male
  • Location:QLD Australia
  • Local time:02:55 PM

Posted 16 December 2013 - 09:06 PM

Even setting the Admin as owner and applying permissions down the directory doesnt always work. You would have to go to the very last file and change the settings one by one, another option i do is use handle.exe from Nirsoft and create a registery entry so i can right click on folders to see what application is still using it.

Downlaod the Nirsoft sweet and put the handle.exe file in the C:\Windows  directory then create/save this txt as a ViewOpenFiles.reg and merge it.

Windows Registry Editor Version 5.00



[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\Handle]

@="View Openfiles"



[HKEY_CLASSES_ROOT\AllFilesystemObjects\shell\Handle\command]

@="cmd.exe /k handle -a -u \"%1\""

To also create a directory print save these 2 files to the C:\Windows drive.

 

Batch file (Call it PrintDirectory.bat)

@echo off

del "%temp%\Listing.txt"

dir %1 /b /on /s > "%temp%\Listing.txt"

start notepad "%temp%\Listing.txt"

exit

Registry file call PrintDirectory.reg

Windows Registry Editor Version 5.00



[HKEY_CLASSES_ROOT\Directory\Shell]

@="none"



[HKEY_CLASSES_ROOT\Directory\Shell\Print_Directory_Listing]

@="Print Directory Listing"



[HKEY_CLASSES_ROOT\Directory\shell\Print_Directory_Listing\command]

@="PrintDirectory.bat \"%1\""



[HKEY_CLASSES_ROOT\SOFTWARE\Classes\Directory]

"BrowserFlags"=dword:00000008



[HKEY_CLASSES_ROOT\SOFTWARE\Classes\Directory\shell\Print_Directory_Listing]

@="Print Directory Listing"



[HKEY_CLASSES_ROOT\SOFTWARE\Classes\Directory\shell\Print_Directory_Listing\command]

@="PrintDirectory.bat \"%1\""



[HKEY_CURRENT_USER\Software\Microsoft\Windows\Shell\AttachmentExecute\{0002DF01-0000-0000-C000-000000000046}]

@=""



[HKEY_CLASSES_ROOT\SOFTWARE\Classes\Directory]

"EditFlags"="000001d2"

Now i created both of these because i need to first print the directory of the stubern folder to see whats in it, then using the viewopenfiles it will show you the svhost.exe number with PID. Very handy for any SysAdmin.






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users