Date: Thu, 18 May 2000 11:52:33 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: djgpp AT delorie DOT com Subject: Re: Directory listing In-Reply-To: <39235740.11D751AF@gtcom.net> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 17 May 2000, Krogg wrote: > What i want in the listing is all files that match "*.c" > and the names of the subdirectories.... > > here is my sample code...how can i change it to > print out the subdirectories and the "*.c" files? Pass "*.*" to findfirst, then use the fnmatch function to filter the files which match the "*.c" pattern.