delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/08/14:10:49

From: "Colin W. Glenn" <cwg01 AT gnofn DOT org>
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: <Pine.GSO.3.95.970308015352.28259I-100000@sparkie.gnofn.org>
References: <33203AEB DOT 647E AT mb DOT sympatico DOT ca>
NNTP-Posting-Host: sparkie.gnofn.org
Mime-Version: 1.0
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.

  <! New Stuff!>
DJGPP A Free GNU C & more compiler
		<a href="http://www.delorie.com/djgpp/">!</a>
DJ Delorie's Home Page
		<a href="http://www.delorie.com/">.</a>

		<! PrePared HTML!  Just export as a HTML file and Click!>
A Christian Web Site!  The Light 
		<a href="http://www.thelight.org/">.</a><br>
A neat place to visit. HotSpot  
		<a href="http://www.hspro.com/hotspot/">.</a><br>

Caldera may be down right now, check anyway.

Caldera, Inc. / Makers of OpenDOS
		<a href="http://www.caldera.com/">.</a><br>
Caldera's OpenDOS page
		<a href="http://www.caldera.com/dos/dos.htm">.</a><br>

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019