Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.2 9/18/84; site voder.UUCP
Path: utzoo!linus!decvax!tektronix!hplabs!nsc!voder!gbs
From: gbs@voder.UUCP (George Smith)
Newsgroups: net.micro.pc
Subject: MS-DOS search-first function
Message-ID: <851@voder.UUCP>
Date: Thu, 15-Aug-85 17:28:33 EDT
Article-I.D.: voder.851
Posted: Thu Aug 15 17:28:33 1985
Date-Received: Mon, 19-Aug-85 23:01:20 EDT
Distribution: net
Organization: National Semiconductor, Santa Clara
Lines: 18

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