The vol command is a command prompt command that displays the volume label and serial number of a disk.
How to Create, Open, Rename, Copy, and Delete a File in the MS-DOS Command Prompt || Command Prompt
The vol command is available through the Command Prompt in all Windows operating systems including Windows 11, Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, and older versions of Windows.
The vol command is also a DOS command available in MS-DOS.
However, the availability of certain command options and other command syntax varies by operating system.