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: 39

    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.

Similar Topics

Add your comment to this article

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...