Can not delete folder HELP am going mad !!

Page 1 of 2 12 LastLast

  1. Posts : 7
    windows 7 premium 64 bit
       #1

    Can not delete folder HELP am going mad !!


    Hi all

    I have a problem thats really really starting to get to me lol

    I had a folder that had loads of kindle books in it that i tried to delete, however it would not delete some of them because the file name was to long ?? i managed to get rid of all of them expect these 2 folders which would not delete because of long names, i dragged the folder to my desktop and tried again and now i am getting the following message

    "the file is no longer located in C: etc etc etc verfity the items loacation and try again.

    i have put the folder back in original location but still no joy !

    I have tried going through the command promp and sure enough its there and when i try and delete thorugh dos it asks me if i am sure i say Y and still its there????

    any ideas anyone this is driving me mad
      My Computer


  2. Posts : 2,528
    Windows 7 x64 Ultimate
       #2

    Heh this is a troublesome one.

    There are some programs on the net that will delete the file, but you can try a couple of things yourself.

    1) Simply rename the file to a single character name. Then try to delete.
    2) Try renaming folders that are in the path if you can to one character names (but don't rename any system folders like "user" of course). Try to delete.
    3) Got this from the net:
    Another option is deleting the files from the cmd prompt.
    Start > Run > "cmd" Enter.
    cd to the folder one level up from the one that contains the files that won't delete, and use the rd command like "rd /s /q folderwithbadfilenames" Enter
    4) Look for a utility on the net. There are several, some for pay and some suspecious looking :P I can't give advice on a good one.
    5) Write a program in c or something to delete the pathname...

    The crux of the problem (and it's dissapointing that it's still there) is that NTFS can handle pathnames that are 4096 characters olng but windows explorer can only handle names that are 256 chars or shorter

    So programs can handle them fine but as a user through explorer this can happen...
    Last edited by Brink; 23 Mar 2011 at 17:13. Reason: Added link ;)
      My Computer


  3. Posts : 7
    windows 7 premium 64 bit
    Thread Starter
       #3

    thanks for your quick reply, when i try to rename the folder it says

    could not find this item the folder is no longer located on c: blah blah etc

    can you explain what you mean by the RD command a bit more??

    thanks again

    Chris
      My Computer


  4. Posts : 1,996
    Windows 7 Home Premium 64 bit
       #4

    I had a folder I couldn't delete.
    I booted into the safe mode and was able to delete it.
      My Computer


  5. Posts : 7
    windows 7 premium 64 bit
    Thread Starter
       #5

    i tried the safe mode suggestion but still no luck, i have gone through dos and deleted eveything in the folder but it wont let me delete the actual folder, when i click on the folder it says location is not available etc etc refers to a location that is unavailable, it could be on the hard drive of this computer or on a network arrghhhhhhhhhhhh there must be a way !!
      My Computer


  6. Posts : 72,049
    64-bit Windows 11 Pro for Workstations
       #6

    Hello Chris, and welcome to Seven Forums.

    You might see if you may be able to use the free program Unlocker to delete the folder.

    Hope this helps,
    Shawn
      My Computer


  7. Posts : 2,528
    Windows 7 x64 Ultimate
       #7

    Well the rd command I got from the net, but lets say the path was "C:\one\two\three\file.ext"
    You would open a command prompt at "C:\one\two" (Or "cd" to that folder)
    Then type the command "rd /s /q three" and it will delete the "three" folder and all files in it.

    Now this is assuming that the folder "three" is expendable :)

    Info on the rd command:
    MS-DOS rd and rmdir command help

    and

    Folder - Delete from Command Prompt

    I do not know if this works myself though...
    Last edited by Brink; 23 Mar 2011 at 17:38. Reason: added link
      My Computer


  8. Posts : 2,039
    Several, including Windows 7 x64 Ultimate
       #8

    The file manager in 7-zip will delete everything, it is much more powerful than explorer or many other file managers.

    Explorer has some severe limitations.

    7-Zip

    <http://www.7-zip.org/>

    32 and 64 BIT freeware.

    Regards....Mike Connor
      My Computer


  9. Posts : 6,305
    Windows 7 Ultimate x64
       #9

    Hi,

    You could try resetting all folders to see if it helps...

    Can not delete folder HELP am going mad !!-folder-options-2.png

    I've seen many issues with folders not deleting until a refresh (F5) is performed and it has helped. Your issue sounds very similar in the fact that...

    1, You may have already deleted the folder and Windows folder view has broken and needs resetting
    2, When the folder view is broken deleted folders will still show. There'll be no error with the 1st delete but every delete after


    OS
      My Computer


  10. Posts : 774
    Vista Ultimate X64/ Windows 7 Dual-boot
       #10

    Is the folder empty ? ?
      My Computer


 
Page 1 of 2 12 LastLast

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 21:52.
Find Us