Xref: utzoo comp.os.msdos.programmer:2114 comp.windows.ms.programmer:234 alt.msdos.programmer:2243 Path: utzoo!utgpu!cs.utexas.edu!sdd.hp.com!uakari.primate.wisc.edu!samsung!munnari.oz.au!metro!cs.uow.edu.au!wolfen!bernt From: bernt@wolfen.cc.uow.oz (Bernt Ribbum) Newsgroups: comp.os.msdos.programmer,comp.windows.ms.programmer,alt.msdos.programmer Subject: Re: DOS dir command - How does it work? Message-ID: <6661@wolfen.cc.uow.oz> Date: 27 Nov 90 02:17:23 GMT References: <1990Nov19.212134.6012@polyof.poly.edu> Organization: Uni of Wollongong, NSW, Australia Lines: 35 valley@uchicago (Doug Dougherty) writes: >File tree walk system call? In DOS??? What that? Maybe something like this (Turbo C): #include int done; struct ffblk ffblk; char *filespec; done = findfirst(filespec,&ffblk, FA_RDONLY | FA_HIDDEN | FA_SYSTEM | FA_DIREC | FA_ARCH); while (!done) { /* do whatever... */ done = findnext(&ffblk); } Leaving out any of the constants FA_... will exclude files with the corresponding attributes set. -- _--_|\ -- Bernt Ribbum, Dept of Elec & Comp Eng, Univ of Wollongong / \ -- PO.Box 1144, Wollongong NSW 2500, AUSTRALIA ------------ \_.--._/ -- bernt@wolfen.cc.uow.edu.au ----------------------------- v -- _--_|\ -- Bernt Ribbum, Dept of Elec & Comp Eng, Univ of Wollongong / \ -- PO.Box 1144, Wollongong NSW 2500, AUSTRALIA ------------ \_.--._/ -- bernt@wolfen.cc.uow.edu.au ----------------------------- v