From: "Alexei A. Frounze" Newsgroups: comp.os.msdos.djgpp Subject: Re: Best way to implement DELTREE Date: Tue, 04 Apr 2000 14:39:53 +0400 Organization: MTU-Intel ISP Lines: 25 Message-ID: <38E9C679.30DE0FA4@mtu-net.ru> References: <8ccfq7$v1q$1 AT newsg1 DOT svr DOT pol DOT co DOT uk> NNTP-Posting-Host: ppp97-251.dialup.mtu-net.ru Mime-Version: 1.0 Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit X-Trace: gavrilo.mtu.ru 954844843 71574 212.188.97.251 (4 Apr 2000 10:40:43 GMT) X-Complaints-To: usenet-abuse AT mtu DOT ru NNTP-Posting-Date: 4 Apr 2000 10:40:43 GMT X-Mailer: Mozilla 4.61 [en] (Win95; I) X-Accept-Language: en,ru To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com You need a recursive traversal through all the directories. Here you should use findfirst() and findnext() plus two subroutines that save and restore searching state of findfirst() and findnext(). These 2 additional functions simply saves and restores DTA (refer to HelpPC 2.10 or TechHelp 6 or Ralf Brown's Int List). Good Luck Alexei A. Frounze ----------------------------------------- Homepage: http://alexfru.chat.ru Mirror: http://members.xoom.com/alexfru Ben Davis wrote: > > Is there a function in libc which will do a DELTREE for me for my uninstall > program? If not, what is the best way to implement one? > > I know I could use system(), but that's untidy...isn't it? > > Please, no ethical issues about leaving the configuration files - I'm > providing this ability as well. > > Ben Davis