TIP: Click on subject to list as thread! ANSI
echo: os2prog
to: Gautam Lad
from: Charles Gaefke
date: 1996-12-14 19:01:00
subject: Re: DosFindFirst

On or about 13 Dec 96  13:27:20, Gautam Lad said something about
"DosFindFirst" to **Anybody**.  My reply:

GL> Hi,
GL> By any chance is DosFindFirst supposed to return directories upon search?
GL> I don't think so, based on my experience with it (I tried everything, I thi
GL> So, does anyone have a simple source code that list the full directories in
GL> current path?  I can modify this to do a global find (all dirs. and sub-dir
GL> Thanks!

    I asked a question very similar to this at one time. :)

    The key is checking the filespec FindFirst returns with the _A_DIR flag (I
believe) that's it.  DosFindFirst seems to be incapable of returning just 
directories.


C. Gaefke
[lotl2{at}telerama.lm.com]
[CDRMail Author]

--- RG0511/CDRMAIL 1.06b
* Origin: LOTL/2 * 412 746 3592 * lotl2.slip.lm.com * USofA (1:129/230)
SEEN-BY: 50/99 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934
SEEN-BY: 711/955 712/407 515 624 628 713/317 800/1
@PATH: 129/230 11 270/101 712/515 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.