(E-Mail Removed) wrote:
> Hi everyone, I have an unusual problem:
>
> I have a directory that I cannot delete that was created by an
> accidental backup routine. I have a folder on my K drive called "K:
> \projects 2007" with about 89mb (3 folders) in in, which was copied by
> my automated backup (Cobian Backup) into its own directory "K:
> \projects 2007", creating a loop that nested "projects 2007" folders
> into themselves, presumably with about 89mb in each tier. Creating:
>
> K:\projects 2007\projects 2007\projects 2007\projects 2007\projects
> 2007\projects 2007...
>
> I do not know how deep the directory structure goes, but by the space
> left on my disk, it looks to be about 433 directories deep (for a
> total disk usage of about 39GB)! My goal is to delete the whole thing.
>
> I cannot delete, it says "Cannot Delete File or Folder, Cannot Delete
> File:".
>
> I have tried:
>
> 1) Going down as far as I can and trying to delete that folder. Same
> problem, presumably because I am only like 18 levels down, which
> barely scratches the surface! Explorer will only let me browse that
> far.
>
> 2) Terminating explorer and browsing from within Nero to delete the
> folder, or a deeper one within it. It only lets me browse down to like
> 18 tiers anyway.
>
> 3) using the Command Prompt, after having terminated explorer, and
> from safe mode to rmdir /s the directory. I have also tried the rd
> command. Both successfully bury through an impressive number of
> directories, but return lots of errors like "Maximum Path Length
> Exceeded", "The process cannot access the file because it is being
> used by another process" (even from safe mode), "The directory is not
> empty", etc etc
>
> 4) Browsing down as far as I could go (again, like 18 tiers), then
> mapping that folder to a new virtual drive, then browsing down in that
> virtual drive, then mapping a deeper drive, etc. I used all 26 letters
> and was able to browse deeper, but I get the same error when I try to
> delete a folder.
>
> 5) I have tried numerous "Delete on Boot" programs to attempt to
> delete the folder on reboot, when nothing was accessing it.
>
> Any thoughts or suggestions short of clearing off the drive and
> formatting, would be much appreciated!
>
> Thanks again
>
> Ted
Since this is K drive, presumably NOT your boot drive, then just copy
everything BUT that folder set to another drive. Then kill, recreate the
partition, and put things back. Done, quicker, and more efficiently.
AND, if that program can't handle recursing itself, I'd get rid of it and
install one that can! That's an unforgiveable bug, IMO. Any good app knows
not to recurse itself.
If you're doing that with batch files, XXCOPY will handle that sort of
recursivity very well and easily. It's at xxcopy.com. Very similar to
xcopy but much more powerful. Oh, and it's free but I found it so useful I
paid for it. Only difference between paid/free is a license, which stops
certain nags and turns on a few very powerful features. It'll also clone a
drive; has both backup and clone features. NOT for backing up system
drives; you need to use shadowcopy for that. It's all in their FAQs.
HTH
Pop`