[net.micro.pc] MS-DOS search-first function

gbs@voder.UUCP (George Smith) (08/16/85)

I have a Turbo program and a Desmet C program which does INT 21
function 4E and 4F calls (Search First and Search Next).  The DOS
Technical Reference Manual documents that CX is to contain the
attribute byte describing the type of file to search for.  It
further states that if the attribute byte is set for a volume
label, then the search is exclusive and only the volume label
entry will be returned.  Both of my programs work as expected
and according to the manual when reading the hard disk on my
PC XT.  However, when reading the floppy, the volume label is
never found.  The built-in command DIR finds the floppy volume
label just fine so I know it is there.  I am running PC-DOS 2.1.
Why does it work for the hard disk and not the floppy???  Any
info would be appreciated.

-- 
George B. Smith
National Semiconductor
...!{ihnp4!nsc | decvax!decwrl!nsc | ucbvax}!voder!gbs