TechSpot

Unable to delete Lengthy Folder

By nishadsukumaran
Nov 25, 2008
  1. I got a folder structure with a very large tree of sub folders. I wrote a script to delete folders older than 30 days. But some folders are not getting deleted.

    Then I have tried deleting that folder manually, but getting an error message like 'Unable to delete folder'. I have renamed one parent folder into a single character, then tried deleting the entire tree and succeeded.

    What will be the actual problem? file length? but its not exceeding more than 250 chars.

    I want to automate this task. Please help me on this issue.
     
  2. jimjams

    jimjams TS Rookie Posts: 43

    Maybe the script/user needs somekind of administrator privilege?

    Because if it says unable to delete that normally means that you don't have the rights or it's in use.

    Try deleting in safe mode..
     
Topic Status:
Not open for further replies.


Add New Comment

TechSpot Members
Login or sign up for free,
it takes about 30 seconds.
You may also...


Get complete access to the TechSpot community. Join thousands of technology enthusiasts that contribute and share knowledge in our forum. Get a private inbox, upload your own photo gallery and more.