From: Michael Flegel Newsgroups: comp.os.msdos.djgpp Subject: Re: deleting stuff from djgpp directory? Date: Mon, 12 May 1997 13:50:00 +0000 Organization: University of Hamburg -- Germany Lines: 38 Message-ID: References: <33731C30 DOT 791E AT cornell DOT edu> NNTP-Posting-Host: sat111.physnet.uni-hamburg.de Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <33731C30.791E@cornell.edu> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Fri, 9 May 1997, A. Sinan Unur wrote: > Michael Flegel wrote: > > > > > > I just downloaded RHID12BB from R Hoene's website. And I wanted to > > delete the old version before I installed the new one. So I printed > > out the file from the manifest directory and deleted all files that > > were in it. Is there a simpler way of doing this? > > There really ought to be... :-) If any onw knows, please email me. > > > > duh ... it would take less effort to write a simple utility to read each > line and delete the appropriate file than to print out the mft file and > delete the files by hand. try it. it would need three options: duh, if somebody else has done it, why should I redo it?! > -d : specify the djgpp installation directory So what is SET DJGPP for? > -p : name of the package (w/o path) > -e : read the djgpp installation directory from the environment (DJGPP) see above > then, all you need to do is open the appropriate mft file, read it in > line by line, form the full path to each file and delete it. voila, you > got yourself a nifty utility. rm is such a nifty utility ;-) MLF/SLi ;----------------------------------------------------------------------------; ; Michael Lamar Flegel ; Student of Math and Physics in Hamburg, Germany ; ; Am Ehrenmal 2 ;---------------------------------------------------; ; 21516 Schulendorf ; www.physnet.uni-hamburg.de/home/vms/flegel ; ; Germany ; flegel AT physnet DOT uni-hamburg DOT de ; ;----------------------------------------------------------------------------;