Can't delete folders


  1. Posts : 605
    W7 Ultimate
       #1

    Can't delete folders


    I installed W7 and imported(copied) my previous files from WXP to W7. I find that ALL the folders I pasted and their contents are marked as Read Only, consequently was unable to edit any of the files. I was able to remove the RO attribute with the DOS command "attrib -r DIRECTORY\*.*/s" where DIRECTORY was the path to the folder in question. All the file RO attributes were removed, even in the sub-folders, however the RO attribute remains on the folders. How can I remove the RO attributes from the folders so I can delete or otherwise edit them?
      My Computer


  2. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
       #2

    Hello Blockie,

    You would just need to add the /d switch to it to include the directories (folders) so the command looks like this below instead now.

    attrib -r DIRECTORY\*.* /s /d

    Hope this helps,
    Shawn
      My Computer


  3. Posts : 605
    W7 Ultimate
    Thread Starter
       #3

    Brink said:
    Hello Blockie,

    You would just need to add the /d switch to it to include the directories (folders) so the command looks like this below instead now.

    attrib -r DIRECTORY\*.* /s /d

    Hope this helps,
    Shawn

    Didn't do it. Got nothing but "Access Denied". Need help with that,
      My Computer


  4. Posts : 72,046
    64-bit Windows 11 Pro for Workstations
       #4

    Did you use it in a elevated command prompt (run as administrator)?
      My Computer


  5. Posts : 605
    W7 Ultimate
    Thread Starter
       #5

    Brink said:
    Did you use it in a elevated command prompt (run as administrator)?
    That didn't work either.
      My Computer


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

    What is the full path of the folder that you are wanting to do this on?

    If this is a protected operating system file, then you may need to do this from a command prompt at startup instead using your Windows 7 installation disc.

    You might also try Unlocker on it, to see if you may be able to delete it afterwards.
      My Computer


  7. Posts : 605
    W7 Ultimate
    Thread Starter
       #7

    There are about 7 folders at the C:\ prompt. One of them is C:\Corel\. I will try the steps you suggested tomorrow.
    Bill
      My Computer


 

  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 19:43.
Find Us