Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!uunet!ns-mx!umaxc.weeg.uiowa.edu!williams From: williams@umaxc.weeg.uiowa.edu (Kent Williams) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: need directory pruner Message-ID: <2222@ns-mx.uiowa.edu> Date: 30 Aug 90 17:08:29 GMT References: <297@kaos.MATH.UCLA.EDU> Sender: news@ns-mx.uiowa.edu Reply-To: williams@umaxc.weeg.uiowa.edu.UUCP (Kent Williams) Distribution: usa Organization: U of Iowa, Iowa City, IA Lines: 25 No, I don't have a disk nuker, but to write one wouldn't be hard. The trick to killing directories fast is to use the FCB delete call. Something like nuke_dir(name) { for all directories X in name { change directory to name/X nuke_dir(X); } set all files read/write/visible; fcb_delete(*.*); /* everything left must be a directory */ for all directories X in name { rmdir(name); } } nuke_dir("\\"); -- Kent Williams --- williams@umaxc.weeg.uiowa.edu "Had a dream one night/That the tree had lost its middle/So he built a trunk of chicken wire/To try to hold it up/But then the wire, the wire/Turned to lizard skin/and he climbed inside" - 'Wendell Gee', by REM