SAMPLE: SetVol.exe Writes Volume Labels to Floppy & Hard Disks

ID: Q71498

The information in this article applies to:

SUMMARY

SetVol.exe is a sample file that demonstrates how to write a volume label to the disk in drive A. SetVol.exe uses the Extended File Control Block Structure and uses some in-line assembly to check whether a volume label exists. If so, SetVol.exe deletes the label.

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.

MORE INFORMATION

The following file is available for download from the Microsoft Software Library:

 ~ SetVol.exe (size: 18864 bytes) 

For more information about downloading files from the Microsoft Software Library, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q119591
   TITLE     : How to Obtain Microsoft Support Files from Online Services

Additional query words: Keywords : kbfile kbsample kb16bitonly kbKernBase

Last Reviewed: December 11, 1998