Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site rruxo.UUCP Path: utzoo!watmath!clyde!burl!ulysses!gamma!pyuxww!pyuxv!rruxa!rruxo!vch From: vch@rruxo.UUCP (Kerro Panille) Newsgroups: net.micro.pc Subject: Re: MS-DOS function 4Eh problem! Message-ID: <286@rruxo.UUCP> Date: Thu, 22-Aug-85 12:11:25 EDT Article-I.D.: rruxo.286 Posted: Thu Aug 22 12:11:25 1985 Date-Received: Sun, 25-Aug-85 06:10:35 EDT References: <1106@pucc-i> Organization: Colony, Pandora Lines: 31 > > 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. > Are you sure that you are looking at the root directory??? The volume label is in that directory only, and you have to search that directory in order to get it. Other than that, try to fudge it. Look for an entry with that attribute. BTW, the other attribute bits may be set on the volume label. Try setting the attribute to hidden, system, and volume label (0x0e). That may help. -- Vince Hatem +----------------------------------------+ Bell Communications Research !"..., isn't that right, Daniel?" ! Raritan River Software Systems Center ! "When you get that look on your face, ! 444 Hoes Lane ! Marty, I go prune my roses." ! 4D-360 ! -Frank Herbert ! Piscatway, NJ 08854 ! Chapterhouse: Dune ! (201) 699-4869 ! pg 459 ! ...ihnp4!rruxo!vch +----------------------------------------+