| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Volume labels |
Hi, Frank (& John).
FA> JP> Does anyone know if there is a function in Borland Turbo
FA> JP> C++ 3.0 which will read the volume label on a disk? I have
FA> JP> not been able to find anything.
FA> findfirst() findnext().
FA> if(f.ff_attrib == FA_LABEL) printf("Label : %s",f.ff_name);
There is also a DOS call to do that, int $21 function $69 minor $00. But
beware that it gets the VolId from the *boot sector*, not the directory
entry with the VolId attribute set. Some older non-DOS utilities may set
the directory entry but not the boot sector VolId.
(That call also gets the disk serial number. If you want details I'll
post the function from my 'useful' library. In Pascal, OF COURSE. :-))
Regards, fIM.
* * Speech Teachers do it orally.
@EOT:
---
* Origin: Pedants Inc. (3:711/934.24)SEEN-BY: 711/808 934 @PATH: 711/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™.