Microsoft KB Archive/71498

{|
 * width="100%"|

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

 * }

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:

"SetVol.exe" For additional information about how to download Microsoft Support files, click the article number below to view the article in the Microsoft Knowledge Base:

"Q119591 How to Obtain Microsoft Support Files from Online Services" Microsoft used the most current virus detection software available on the date of posting to scan this file for viruses. Once posted, the file is housed on secure servers that prevent any unauthorized changes to the file.

Additional query words:

Keywords : kbfile kbsample kb16bitonly kbKernBase

Issue type :

Technology : kbAudDeveloper kbWin3xSearch kbSDKSearch kbWinSDKSearch kbWinSDK300 kbWinSDK310