[Tutor] Deleting recursive folder definition

Lawrence Wickline lawrence.wickline at gmail.com
Mon Jan 12 20:46:03 CET 2009

did you try "rd /s /q" from the root directory command prompt?


On Jan 12, 2009, at 11:07 AM, Alan Gauld wrote:

> I've managed to do something incredibly stupid on my XP box.
> I've created a folder that is a link to itself - at least I think  
> that's what has
> happened, it was a CASE tool that I was using that actually did the  
> damage.
> The symptoms are that I can "infinitely" navigate down to the next  
> level.
> I can also delete as many folders as I like but the top level  
> properties
> still report 232 folders... Also I get error messages on the defective
> folder saying the filename(ie path) is too long.
> I've tried using Cygwin rm, I've tried renaming the folder to a  
> shorter
> name., I've tried using the DOS DEL command.
> My last resort is to try to write a program to do it, but how?
> Does anyone know enough about Windows filesystem (NTFS) to know
> which API calls etc I would need? Or is there a better solution?
> I'm not even sure this approach will work since it will just recurse
> to inifinity too I suspect!
> The MSDN and Knowledge Base don't seem to offer any advice either...
> Any ideas?
> Alan G.
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> http://mail.python.org/mailman/listinfo/tutor

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20090112/bbcf841a/attachment.htm>

More information about the Tutor mailing list