SAMPLE: Writing Volume Labels to Floppy and Hard DisksLast reviewed: February 15, 1996Article ID: Q71498 |
The information in this article applies to:
To write a volume label on a floppy or a hard disk, a Windows-based application can use the C run-time function _dos_create(). However, if the disk already has a volume label, _dos_create() fails unless the old label is first deleted. SETVOL is a sample in the Microsoft Software Library that demonstrates writing a volume label to the disk in drive A. SETVOL makes use of the Extended File Control Block Structure and uses some in-line assembly to check whether a volume label exists. If so, SETVOL deletes the label. Download SETVOL.EXE, a self-extracting file, from the Microsoft Software Library (MSL) on the following services:
|
Additional reference words: 3.00 3.10 softlib SETVOL.EXE
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |