From: "Colin W. Glenn" Newsgroups: comp.os.msdos.djgpp Subject: Re: Search DOS hard drive question Date: Sat, 8 Mar 1997 01:58:23 -0600 Organization: Greater New Orleans Free-Net Lines: 42 Message-ID: References: <33203AEB DOT 647E AT mb DOT sympatico DOT ca> NNTP-Posting-Host: sparkie.gnofn.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: <33203AEB.647E@mb.sympatico.ca> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp On Fri, 7 Mar 1997, Programming wrote: > The command: > DIR /S /E will give all files in the current, and all subdirectories. > > The FIND command will find all character strings, in a file. > > I want to search all files on the hard drive for a specific character > string; in the root directory, and all subdirectories. ALL files. You might be better off using a combination of tricks, first off, use DIR (file.spec) /B /S >TEMP.DAT To produce a list of the files you want searched into a file, then open the file with a program produce a bat file with the command FIND "my text" (one.file.spec) >>RESULTS.DAT For each file. After you run the bat, you can examine RESULTS.DAT to quickly locate which files contain the string you're looking for. DJGPP A Free GNU C & more compiler ! DJ Delorie's Home Page . A Christian Web Site! The Light .
A neat place to visit. HotSpot .
Caldera may be down right now, check anyway. Caldera, Inc. / Makers of OpenDOS .
Caldera's OpenDOS page .