Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!mimsy!oddjob!gargoyle!ihnp4!cuae2!killer!tjones From: tjones@killer.UUCP (Tim Jones) Newsgroups: comp.lang.c Subject: Volume labels again Message-ID: <1325@killer.UUCP> Date: Tue, 11-Aug-87 22:45:31 EDT Article-I.D.: killer.1325 Posted: Tue Aug 11 22:45:31 1987 Date-Received: Sat, 15-Aug-87 03:28:07 EDT Organization: The Unix(tm) Connection, Dallas, Texas Lines: 17 Well, I received a request for the solution I discovered about reading volume labels from C/Assembly, so here it is: Set the DTA to a 64 byte buffer. Define an XFCB in the sequence as follows: 0ffh ;sifnifies XFCB 5 zeroes(0) ;reserved space 8 ;attribute for volume label 0 ;default drive 11 question marks (?) ;wildcard filename/extension 25 zeros(0) ;space not used Call interrupt function 11h - if al = offh, no label, else the 64 byte buffer contains the name in bytes 8h-12h By the way, the preceding came from Advanced MS-DOS from Microsoft Press.