| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | DosFindFirst |
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
GL> tried everything, I think).
GL> So, does anyone have a simple source code that list the
GL> full directories in the current path? I can modify
GL> this to do a global find (all dirs. and sub-dirs.).
GL> Thanks!
According to the documentation, something along the lines of:
HDIR findfilehandle;
ULONG ulNumFound = 1;
FILEFINDBUF3 ffbBuffer;
DosFindFirst("*", &findfilehandle, FILE_DIRECTORY /* or
MUST_HAVE_DIRECTORY */,
&ffbBuffer, sizeof(ffbBuffer), &ulNumFound, FIL_STANDARD);
should give you a start. Notice the FILE_DIRECTORY to include directories,
or MUST_HAVE_DIRECTORY to ONLY get directories.
--- Maximus/2 3.01
* Origin: Tanktalus' Tower BBS (PVT) (1:342/708)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: 342/5015 61 3615/50 396/1 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™.