Programming Field

Vol - DOS/Command Prompt Reference

Outputs the volume label and serial number of a disk.

Syntax

vol [<drive>:]
<drive>: Specifies the drive letter of the disk you want to display with a ‘:’ appended. If not specified, the current drive will be used.

Details

Usage of Vol

The format displayed by this command is the same as the output of the Dir command, excluding cases where options to suppress output are specified.

To set the volume label, use the Label command.