Page 1 of 3 123 LastLast
Results 1 to 15 of 33
  1. #1
    New Lounger
    Join Date
    Oct 2015
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Windows 7 can't delete file

    Dear reader; Windows7 has a glitch in its NTFS implementation:
    often times it can not delete a file giving the following error:

    (dialog box title) File Access Denied
    You need permission to perform this action
    You require permission from the computer's administrator to make
    changes to this file
    (file icon) file params: name, date created, size
    (2 buttons) 'Try Again' 'Cancel'

    Is there a fix to this problem from MS? If yes, what is the KB#?
    Thanks.

  2. #2
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    8,203
    Thanks
    49
    Thanked 989 Times in 919 Posts
    That is not a glitch in NTFS, it's a permission issue, although the error message is odd. What is the file and what directory is it in?

    cheers, Paul

  3. #3
    Super Moderator
    Join Date
    Aug 2012
    Location
    Durham UK
    Posts
    6,645
    Thanks
    147
    Thanked 884 Times in 845 Posts
    You need to take ownership of the file so that you have the relevant permission.

    http://www.7tutorials.com/take-owner...es-and-folders

    Usually adding EVERYONE with Full Control will do it.

  4. #4
    Super Moderator BATcher's Avatar
    Join Date
    Feb 2008
    Location
    A cultural area in SW England
    Posts
    3,421
    Thanks
    33
    Thanked 195 Times in 175 Posts
    If all else fails, look for UnLocker.

    This is the author's website, but he has been plagued by antivirus software saying his program contains dangerous stuff.
    I've never had a problem over many years of use.
    BATcher

    Time prevents everything happening all at once...

  5. #5
    5 Star Lounger
    Join Date
    Dec 2009
    Location
    S.F. Bay Area, California, USA
    Posts
    735
    Thanks
    15
    Thanked 80 Times in 78 Posts
    +1 for Unlocker.

    Zig

  6. #6
    New Lounger
    Join Date
    Oct 2015
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    my thanks go to all responders. unfortunately i can't use any 3rd party
    tools on that machine. again, have you seen ms addressing this issue?

  7. #7
    New Lounger
    Join Date
    Oct 2015
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks Paul; the file is a regular file created with just 1 attribute 'set'
    FILE_ATTRIBUTE_NORMAL. an attempt to delete it returns error code 5.

  8. #8
    Silver Lounger RolandJS's Avatar
    Join Date
    Dec 2009
    Location
    Austin metro area TX USA
    Posts
    1,735
    Thanks
    95
    Thanked 130 Times in 127 Posts
    What exactly is this regular file? Where exactly does it reside? This is a permissions issue, there is nothing Microsoft is going to do unless you either are a Blue-Disk customer or you pay for their support.
    Follow the permissions advice the other poster gave you
    "Take care of thy backups and thy restores shall take care of thee." Ben Franklin revisited.
    http://collegecafe.fr.yuku.com/forum...-Technologies/

  9. #9
    New Lounger
    Join Date
    Oct 2015
    Posts
    9
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hi Roland; the file is created by me - the only user&administrator.
    I do have all permitted rights to it but can not delete it for some
    time because an extra reference to its handle is held by the windows
    explorer even when no explorer windows are open. After a few
    seconds (may take up to 2-3 min) the file handle ref.count will
    drop to 0 and delete call succeeds. In my understanding of Windows,
    explorer is the GUI between user and the OS file system. My PC has
    nothing installed on it but Windows7; it has never been connected
    to the internet. (file is created/located in C:\Users\SamBrook\Documents
    folder; re-installing Windows to its original state does solve the problem)

  10. #10
    Silver Lounger RolandJS's Avatar
    Join Date
    Dec 2009
    Location
    Austin metro area TX USA
    Posts
    1,735
    Thanks
    95
    Thanked 130 Times in 127 Posts
    Sometimes I have a file or more that needs to be deleted; if Windows a no-go, I aim at the file[s] either Emco's Move/Delete on Boot or SUPERAntispyware's delete module. I try not to do that too often 'cause a penalty hit once in a while happens - forcing a restart
    "Take care of thy backups and thy restores shall take care of thee." Ben Franklin revisited.
    http://collegecafe.fr.yuku.com/forum...-Technologies/

  11. #11
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    8,203
    Thanks
    49
    Thanked 989 Times in 919 Posts
    There must be something holding that file open. Try using Handle to see what that is.

    cheers, Paul

  12. #12
    Silver Lounger RolandJS's Avatar
    Join Date
    Dec 2009
    Location
    Austin metro area TX USA
    Posts
    1,735
    Thanks
    95
    Thanked 130 Times in 127 Posts
    I created a batchfile to "capture" the output:

    rem handle64 information
    handle64.exe>d:\logs\handle64S01.txt
    dir d:\logs\handle64S01.txt
    pause
    exit

    The batchfile must reside in the directory where handle64.exe resides.
    "Take care of thy backups and thy restores shall take care of thee." Ben Franklin revisited.
    http://collegecafe.fr.yuku.com/forum...-Technologies/

  13. #13
    WS Lounge VIP
    Join Date
    Dec 2009
    Location
    Earth
    Posts
    8,203
    Thanks
    49
    Thanked 989 Times in 919 Posts
    Alternately, run this from a Command Prompt.

    handle64.exe>%temp%\handle64S01.txt & notepad %temp%\handle64S01.txt

    cheers, Paul

  14. #14
    New Lounger mchldpy's Avatar
    Join Date
    Dec 2009
    Location
    sadly stuck in so-cal
    Posts
    23
    Thanks
    0
    Thanked 2 Times in 2 Posts
    A common misconception,
    "I am the only user&administrator". You are not the administrator, simply a user with an administrator account, if your talking about the "administrator account" created during installation. The true/real admin account is disabled by default and unless you have been into GPO or LSP and enabled it manually or through the command prompt you are a user with an admin account.
    REMEMBER--- "if you don't play well with others, you could end up playing with yourself."


  15. #15
    3 Star Lounger
    Join Date
    Jan 2010
    Location
    Michigan
    Posts
    384
    Thanks
    1
    Thanked 4 Times in 4 Posts
    Sometimes I've had success just going into DOS (command prompt) and using the del command.

    eg: say file JOE located in folder MOVE

    cmd
    cd \move
    del "joe"

    Mel

Page 1 of 3 123 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •