Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP
Posting-Version: version B 2.10.1 6/24/83; site pucc-i
Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxn!ihnp4!inuxc!pur-ee!CS-Mordred!Pucc-H:Pucc-I:ade
From: ade@pucc-i (D. Kakarigi)
Newsgroups: net.micro.pc
Subject: MS-DOS function 4Eh problem!
Message-ID: <1106@pucc-i>
Date: Fri, 16-Aug-85 13:17:16 EDT
Article-I.D.: pucc-i.1106
Posted: Fri Aug 16 13:17:16 1985
Date-Received: Fri, 23-Aug-85 23:52:37 EDT
Reply-To: ade@pucc-i.UUCP (D. Kakarigi)
Organization: Purdue University Computing Center
Lines: 18


	I am writing a program in which, among other things, I would like to
be able to read (and set or alter) disk's Volume-ID label.  I was hoping that
I could use MS-DOS function call 4Eh to obtain the v-id label with attribute
byte set to 08 and the pathname set to *.*.  To my surprise, 4E would return
the file name (and the rest) of the first file on the disk regardless of the 
file attribute.  In fact it seems that 4E function does not try to mach file
attribute as it is documented in the MS-DOS manual since most files have the
byte attribute of 20h and no matter to what value the CX register is set, 4E 
only maches the pathname.

	Am I not interpreting documentation correctly or is this a bug?  BTW,
program is written in Turbo Pascal 3.0 and running on Pronto Series 16 with
MS-DOS 2.0.  Also, I am aware of the alternate ways to do it (use absolute
disk read interrupt 25h  to get the directory sectors and manipulate them
"manually").

	DK  {decvax|harpo|ihnp4|inuxc|seismo|ucbvax}!pur-ee!pucc-i!ade