| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | DosFindFirst |
Hi Gautam, am 13.12.96 13:27 erz„hltest Du **Anybody** GL> Hi, By any chance is DosFindFirst supposed to return directories upon GL> search? I don't think so, based on my experience with it (I tried GL> everything, I think). So, does anyone have a simple source code that GL> list the full directories in the current path? I can modify this to do GL> a global find (all dirs. and sub-dirs.). Thanks! Bye! No, not complete but a pseudocode sequence file_found = DosFindFirst() while file_found if file is directory do something with that dir e.g. call this func recursive else do thomething with that file file_found = DosFindNext() endwhile DosFindClose() You should ignore files with name "." and "..". Use strcmp() to compare the names! File with name ".anything" are legal filenames, but "." means current directory (to ignore) and ".." parent directory (to ignore too). "..x" is a legal filename! Tschau/Bye Herbert Member #53 of Team/OS2 Germany --- Sqed/32 1.13b2/r00196* Origin: Schont die Umwelt: Vermeidet DOSen (2:2476/493) SEEN-BY: 270/101 620/243 625/160 711/401 409 410 413 430 808 809 934 955 SEEN-BY: 712/407 515 624 628 713/317 800/1 @PATH: 2476/493 400 245/5530 2455/112 24/888 396/1 270/101 712/515 711/808 @PATH: 711/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™.