delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/03/12/09:36:06

Date: Wed, 12 Mar 1997 16:03:14 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Bob Dole <bdole AT dolekemp96 DOT org>
cc: djgpp AT delorie DOT com
Subject: Re: Working with directories using [DJGPP] C - HELP!
In-Reply-To: <01bc2e95$14066720$f3b700d0@uberdatamaster>
Message-ID: <Pine.SUN.3.91.970312160100.4794E-100000@is>
MIME-Version: 1.0

On 12 Mar 1997, Bob Dole wrote:

> 	I'm wondering if anyone knows how to directly access directory listings
> through DJGPP C. Say I wanted to scan the entire HD's directory structure
> for certin file(s), how would I go about doing this? I don't know of any
> command that could help me.

If you mean you need to do this from your program, use library functions 
findfirst/findnext or opendir/readdir.  They are described in the library 
reference docs.

If you need to do that from the DOS command line, the best tool is the 
GNU find program, available in the Findutils package (v2gnu/find41b.zip 
from the same place you get DJGPP).

- Raw text -


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