Need help deleting a folder

Discussion in 'Windows 7' started by stevvie, Apr 20, 2010.

  1. stevvie

    stevvie MDL Novice

    Jun 2, 2007
    12
    0
    0
    I tried updating classic shell from 1.9.1 to 1.9.2 and the installer says I dont have permission on folder c:\program files\skins.
    So I think I'll delete everything in that folder and delete it, as that usually does the trick in stupid7. I am told I 'location is not available' when I double click on it and that 'access is denied'. I then try 'takedow /f skins' when in the perent folder and told access denied. If I look in the owner tab it says 'unable to display current owner' in the current owner box.
    Can anybody help me with this ?

    THANKS
     
  2. willko

    willko MDL Member

    May 14, 2008
    148
    16
    10
    Can you edit the owner?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. stevvie

    stevvie MDL Novice

    Jun 2, 2007
    12
    0
    0
    nope, it's say 'you do not have permission'
     
  4. wuhoatu

    wuhoatu MDL Member

    Apr 24, 2009
    241
    17
    10
    Try to logon with Administrator account and Take Ownership
     
  5. Phazor

    Phazor MDL Expert

    Sep 1, 2009
    1,139
    518
    60
    Using the proper command probably wouldnt hurt either. :)

    Its takeown, not takedow...



     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. stevvie

    stevvie MDL Novice

    Jun 2, 2007
    12
    0
    0
    I am the admin, but have tried with admin account. And Phazor OBVIOUSLY that was a typo here as i also said that access was DENIED and if I did type takedow /f it would have said unknown command, but thats one way to bump your posts up.
     
  7. Phazor

    Phazor MDL Expert

    Sep 1, 2009
    1,139
    518
    60
    If it were that obvious, why would i have written what i wrote then?

    (No, dont answer that, it was a rhetorical question.)

    Mmhh, smooth.

    Nice reply to someone who was friendly enough to care about your problem.

    I myself of course call it trying to help, but dont worry, i never make the same mistake twice. :)
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  8. iamanoob

    iamanoob MDL Senior Member

    Feb 28, 2010
    402
    54
    10
    dude.. i feel ya man..
    i get this type of response all the time in here ..
    try to help someone and all we get is grief ..

    F.Y.I
    @ stevvie ... Phazor is a legend in here .. you need to recognize ..all he was doing was helping.. take it like a man ..
     
  9. sam3971

    sam3971 MDL Guru

    Nov 14, 2008
    2,229
    310
    90
    I hear you too dude. a couple of things you can try is either first disabling UAC, then reboot and then delete the folder or you can downlaod program called "Unlocker" which is freeware and then right click the folder, select "Unlocker" and when the window comes up click "Delete" and wait a bit to see what happens. Most likely the reason you cannot delete it is either UAC or some process is using it like explorer.exe. The Unlocker program will most likely be able to delete it for you though dude. Good luck
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  10. stevvie

    stevvie MDL Novice

    Jun 2, 2007
    12
    0
    0
    UAC is already disabled, Used to use unlocker in XP but was only just made aware it is now 64bit compatible. But the strange thing is If I right click the offending skins folder there is no unlocker in the context menu, but if I right click another non related file/folder there is an unlocker in the context menu.
     
  11. R0H1T

    R0H1T MDL Junior Member

    Apr 6, 2010
    69
    79
    0
    #11 R0H1T, Apr 20, 2010
    Last edited: Apr 20, 2010
    Under the security tab check whether the Users group has full control or not. If not then grant full control to that group & you'll be able to delete the folder. If you're not able to do even that then you'll have to change the owner & then grant full control for the folder to be deleted. If you still aren't able to do a thing then there might be some restriction policy preventing you to do so !
    NOTE
    Check whether windows(modules) installer service is disabled or not because there is a high probability that trusted installer might be the owner of that folder. If the owner isn't listed or displayed then you might well have somehow screwed up the ownership during your earlier attempts to delete the folder !
     
  12. sam3971

    sam3971 MDL Guru

    Nov 14, 2008
    2,229
    310
    90
    try to still use unlocker but run the delete through it manually instead of through "Right-Click Context Menus" and see if that helps. That is sort of strange that the unlocker context menu is not appearing though. Maybe that skins folder is corrupt. If what I said still does not work then run chkdsk on your main drive or whatever drive the folder is located on. If it is a corrupt folder then chkdsk will probably remove it for you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  13. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
  14. wuhoatu

    wuhoatu MDL Member

    Apr 24, 2009
    241
    17
    10
    #14 wuhoatu, Apr 21, 2010
    Last edited by a moderator: Apr 20, 2017
    Even you logon Administrator Account, you cannot mofidied/access some system folder/file. In this case, take full ownership. Copy and Paste the content bellows into notepad, save it as reg file (*.reg). D-click the file to merge into registry. R-click to the file/folder you want to get full access, click to Take Ownership.

    Code:
    Windows Registry Editor Version 5.00
    
    [HKEY_CLASSES_ROOT\*\shell\runas]
    @="Take Ownership"
    "NoWorkingDirectory"=""
    
    [HKEY_CLASSES_ROOT\*\shell\runas\command]
    @="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
    "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" && icacls \"%1\" /grant administrators:F"
    
    [HKEY_CLASSES_ROOT\Directory\shell\runas]
    @="Take Ownership"
    "NoWorkingDirectory"=""
    
    [HKEY_CLASSES_ROOT\Directory\shell\runas\command]
    @="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
    "IsolatedCommand"="cmd.exe /c takeown /f \"%1\" /r /d y && icacls \"%1\" /grant administrators:F /t"
     
  15. sam3971

    sam3971 MDL Guru

    Nov 14, 2008
    2,229
    310
    90
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  16. R0H1T

    R0H1T MDL Junior Member

    Apr 6, 2010
    69
    79
    0
  17. wuhoatu

    wuhoatu MDL Member

    Apr 24, 2009
    241
    17
    10
    Since Vista and Win7 now, I always activate (net user Administrator /Active:yes) and use only Administrator account (not user account with Admin rights) on my lappy. Off cause Take Ownership whenever necessary only.
     
  18. stevvie

    stevvie MDL Novice

    Jun 2, 2007
    12
    0
    0
    thanks for all your help but ended up resorting to booting from Xp installed on an extra drive and deleted it FIRST time.
     
  19. timesurfer

    timesurfer MDL Developer

    Nov 22, 2009
    8,524
    4,112
    270
  20. sam3971

    sam3971 MDL Guru

    Nov 14, 2008
    2,229
    310
    90
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...