Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!think.com!mintaka!bloom-beacon!eru!hagbard!sunic!mcsun!hp4nl!eurtrx!euraiv1!reino From: reino@cs.eur.nl (Reino de Boer) Newsgroups: comp.lang.pascal Subject: Re: FindFirst Message-ID: <1991Apr17.121824.9276@cs.eur.nl> Date: 17 Apr 91 12:18:24 GMT References: <5511@mindlink.bc.ca> Reply-To: reino@cs.eur.nl Organization: Erasmus University Rotterdam Lines: 30 Before this gets any more confusing.... In <5511@mindlink.bc.ca> Robert_Salesas@mindlink.bc.ca (Robert Salesas) writes: >I fully understand that the files optained are in addition to "normal" files. >However, the manual does not say what normal files are, yet it does provide the >Archive and ReadOnly files in the ANYFILE constant AND >it provides an example with the ARCHIVE constant. This implies that >Archive and Readonly return differet selections than if they are not used. >When I checked the norton guide, it said (_SPECIFICALLY_) that archive and >readonly files are returned regardless of the flags. ^^^^^^^^^^NOT TRUE (see item 3 below) The attribute controls the search as follows (freely translated from the MS-DOS encyclopedia): 1. If the attribute is $00, only normal files are included in the search. 2. If the attribute has any combination of bits 1, 2, and 4 (Hidden, System, and Directory bits) set, the search includes normal files as well as files with any of the attributes specified. 3. If the attribute has bit 3 set (VolumeID bit), only a matching volume label is returned. 4. Bits 0 and 5 (ReadOnly and Archive bits) are ignored. From which we can conclude that only Hidden, System, Directory, and VolumeID bits indicate non-normal files. Hope this helps -- Reino -- Reino R. A. de Boer "We want to build the right product right, right?" Erasmus University Rotterdam ( Informatica ) e-mail: reino@cs.eur.nl