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

ID: Q71498


The information in this article applies to:
  • Microsoft Windows Software Development Kit (SDK) versions 3.0, 3.1


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 Download Center. Click the file name below to download the file:

SetVol.exe
For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address
http://www.microsoft.com/downloads/search.asp
and then click How to use the Microsoft Download Center.

Additional query words:

Keywords : kbfile kbsample kb16bitonly kbKernBase
Version : WINDOWS:3.0,3.1
Platform : WINDOWS
Issue type :


Last Reviewed: December 2, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.