Vol Command Examples and Options

How to Use the Vol Command in Windows

Screenshot of the vol command in Windows 10
Vol Command (Windows 10).

The vol command is a Command Prompt command used to display a drive's volume label and volume serial number.

Note: The dir command also shows the volume label and volume serial number of a drive before displaying the drive's contents. Also, the vol command is a DOS command available in MS-DOS.

Vol Command Syntax

The vol command syntax in Windows takes the following form:

vol [drive:] [/?]
  • drive: is the letter of the drive that you want to view the volume label and volume serial number for.
  • /? is the help switch with the vol command to show detailed help about the command. Executing vol /? is the same as using the help command to execute help vol.

Vol Command Examples

In this example, the vol command is used to display the volume label and volume serial number for the e drive. 

vol e:

The result displayed on the screen will look something like this:

Volume in drive E is MediaDrive
Volume Serial Number is C0Q3-A19F

As you can see, the volume label in this example is reported as MediaDrive and the volume serial number as C0A3-A19F. Those results will differ when you run the vol command.

Using the vol command without specifying a drive returns the volume label and volume serial number of the current drive.

vol

In this example, the C drive has no volume label, and the volume serial number is D4E8-E115.

Volume in drive C has no label.
Volume Serial Number is D4E8-E115

Volume labels are not required in any file system supported in Windows.

Vol Command Availability

The vol command is available from within the Command Prompt in all Windows operating systems including Windows 10Windows 8, Windows 7, Windows Vista, Windows XP, and older versions of Windows. However, the availability of certain vol command switches and other vol command syntax differs from operating system to operating system.

Vol-Related Commands

The volume label of a drive is necessary information for a few different commands, including the format command and the convert command.

Was this page helpful?