Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!hp4nl!star.cs.vu.nl!dnicola@cs.vu.nl From: dnicola@cs.vu.nl (Nicolaas Dion) Newsgroups: comp.os.msdos.misc Subject: Re: Recursively removing directories Message-ID: <8911@star.cs.vu.nl> Date: 1 Feb 91 15:26:33 GMT Sender: news@cs.vu.nl Organization: Fac. Wiskunde & Informatica, VU, Amsterdam Lines: 25 In article <1991Jan24.155305.12156@phri.nyu.edu>, roy@alanine.phri.nyu.edu (Roy Smith) writes: > > I'm sure this is a trivial question, but a scientist here has a > PS/2 hooked up to some sort of lab instrument. The instrument control > program creates, for each run, a directory called .smp > and puts 4 files in it. Naturally, after several hundred runs, his disk is > starting to get full and he wants to remove all of the old data. Also, > naturally, he asked me how to do it, but being basically a Unix type I > couldn't figure out what to do. Can somebody please tell me the DOS > equivelant of Unix's "rm -r *.smp"? > -- Working with DOS no such questions are trivial. Except for the good advice I've read on getting decent utilities via FTP, I can think of the following: Generate a file using 'tree /f' containing the files to be deleted, and edit it making it a batch file deleting the stuff. Should be no problem with a good editor. However, this is a one time solution. -- ---. /) | __/ \ / _ _ | _ _ _ Dion Nicolaas / )\ | (_(_ (_) \_ ()\ ()\ \ dnicola@cs.vu.nl _/___/ \| -------------------'