CMD Simulator
File Managementvol

VOL Command Guide - Display Drive Volume Label and Serial Number in Windows

Learn how to use the VOL command to display volume labels and serial numbers for Windows drives. Includes syntax, examples, scripting use cases, and troubleshooting tips.

Rojan Acharya·
Share

The VOL command is a Windows Command Prompt utility that displays the volume label and serial number for a specified drive. Use VOL to show the current drive's information, or VOL D: to query a specific drive letter. It provides quick drive identification for scripting, troubleshooting, and system administration.

Whether you're writing batch scripts that need to verify which drive is being processed, identifying removable media in multi-drive systems, or troubleshooting storage configuration issues, the VOL command offers a lightweight way to retrieve basic volume metadata. IT professionals use VOL in deployment scripts, backup verification, and drive enumeration tasks.

This comprehensive guide covers VOL syntax, practical examples for single and multiple drives, scripting integration, troubleshooting tips, related commands, and frequently asked questions. By the end, you'll confidently use VOL for drive identification and automation.

What Is the VOL Command?

The VOL command has been part of Windows (and MS-DOS before it) since the earliest versions. It displays two pieces of volume metadata:

  • Volume label – A user-assignable name (up to 32 characters on NTFS) that identifies the drive
  • Volume serial number – A unique identifier assigned when the volume is formatted (cannot be changed by users)

VOL works in Command Prompt (CMD), Windows PowerShell (with CMD compatibility), and is available in all Windows versions including Windows 11, Windows 10, and Windows Server editions. It requires no special permissions and executes instantly.

VOL Command Syntax

VOL [drive:]

Parameters

ParameterDescription
drive:Optional. Drive letter to query (e.g., C:, D:). If omitted, displays current drive

Examples

Display Current Drive Volume Info

VOL

Output:

 Volume in drive C is Windows
 Volume Serial Number is 1A2B-3C4D

Display Specific Drive Volume Info

VOL D:
VOL E:

Output:

 Volume in drive D is Data
 Volume Serial Number is 5E6F-7G8H

Use in Batch Scripts

@echo off
echo Checking drive C:
vol C:
if errorlevel 1 echo Failed to read drive
pause

Common Use Cases

  • Drive identification – Quickly verify which drive letter corresponds to which volume
  • Script validation – Confirm correct drive before running operations in batch files
  • Troubleshooting – Verify drive labels match expected configuration
  • Backup verification – Ensure backup media is correctly mounted before backup operations
  • Multi-drive systems – Enumerate and identify all drives in servers with many volumes

Tips and Best Practices

  • Always include the colon when specifying a drive: VOL C: not VOL C
  • Combine with if in batch scripts to validate drive presence before operations
  • Volume serial numbers are unique per format; reformatting generates a new serial
  • Use with label command: VOL displays what label sets

Troubleshooting

"Invalid drive specification"

The specified drive letter does not exist or is not accessible. Verify the drive letter and that the drive is mounted.

"Volume in drive X has no label"

The drive has no volume label assigned. Use the label command to assign one if desired.

Related Commands

label – Set Volume Labels

While VOL displays the volume label, the label command creates or changes it. Use label to assign meaningful names to drives.

dir – Directory Listing with Volume Info

Running dir on a drive displays the volume label and serial number in the header before the file listing.

chkdsk – Disk Information

CHKDSK reports volume information as part of its disk analysis output.

Frequently Asked Questions

What does VOL display?

VOL displays the volume label (drive name) and volume serial number for the specified or current drive.

Can I change the volume serial number with VOL?

No. VOL only displays information. The serial number is set at format time and cannot be changed. Use the label command to change the volume label.

How do I use VOL in a batch script?

Use VOL C: or VOL %1 to pass a drive letter as a script parameter. Check errorlevel if the drive might not exist.

Does VOL work on network drives?

Yes. VOL works on mapped network drives (e.g., VOL Z:). It displays the label for the mapped path.

What is the volume serial number used for?

The serial number uniquely identifies a formatted volume. Software may use it for license binding, backup verification, or to detect media changes.

Quick Reference Card

CommandPurposeExample
VOLShow current drive infoQuick check
VOL C:Show drive C: infoSpecific drive
VOL D:Show drive D: infoExternal/secondary drive

Summary

The VOL command provides instant access to volume labels and serial numbers for any Windows drive. Use it for drive identification, script validation, and troubleshooting. Combine with the label command for complete volume metadata management. Practice in the simulator or browse the commands reference for more Windows command guides.