TIP: Click on subject to list as thread! ANSI
echo: aust_c_here
to: Frank Malcolm
from: Frank Adam
date: 1996-05-26 20:59:00
subject: Volume labels

G'Day Frank,
 
-=> Quoting Frank Malcolm to Frank Adam <=-
 
 FA> if(f.ff_attrib == FA_LABEL) printf("Label : %s",f.ff_name);
 FM> There is also a DOS call to do that, int $21 function $69 minor $00.
 FM> But beware that it gets the VolId from the *boot sector*, not the
 FM> directory entry with the VolId attribute set. Some older non-DOS
 FM> utilities may set the directory entry but not the boot sector VolId.
Yep, i found it in Ralph Brown's interrupt list, good idea to get it
from there, it's only DOS4+ but i suppose older ones shouldn't be around 
now.


 FM> (That call also gets the disk serial number. If you want details I'll
 FM> post the function from my 'useful' library. In Pascal, OF COURSE. :-))
It's ok, i've made one just to test it, and i also found a copy in 
Snippets. It does bother me that said function has no critical error
checking though if the drive is not ready it just hangs the machine.
Of course i could've done something previously that left the machine in a 
bad state, but unlikely.
Who ever heard of playing with interrupts can crash a PC ? ;-)

Must be a way around that error checking, but i don't really want to 
install a harderr routine just for this function, i'm yet to look at
the one in Snips see if that does better.
            
  L8r Frank (fadam{at}ozemail.com.au).
  
___ Blue Wave/DOS v2.21
                                        

--- Maximus 3.01
* Origin: The Software Parlour (3:635/544)
SEEN-BY: 50/99 620/243 623/630 632/349 635/503 544 727 711/401 409 410 413
SEEN-BY: 711/430 808 809 932 934 712/515 713/888 714/906 800/1
@PATH: 635/544 50/99 711/808 934

SOURCE: echomail via fidonet.ozzmosis.com

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.