Vol (command)

title: "Vol (command)" type: doc version: 1 created: 2026-02-28 author: "Wikipedia contributors" status: active scope: public tags: ["internal-dos-commands", "msx-dos-commands", "os/2-commands", "reactos-commands", "windows-commands", "microcomputer-software", "windows-administration"] topic_path: "technology/operating-systems" source: "https://en.wikipedia.org/wiki/Vol_(command)" license: "CC BY-SA 4.0" wikipedia_page_id: 0 wikipedia_revision_id: 0
::data[format=table title="Infobox software"]
| Field | Value |
|---|---|
| name | vol |
| screenshot | Volume serial number.png |
| caption | The Windows XP vol command |
| developer | DR, Microsoft, IBM, Toshiba, ReactOS Contributors |
| released | |
| operating system | MS-DOS, PC DOS, MSX-DOS, FlexOS, SISNE plus, OS/2, eComStation, ArcaOS, DR DOS, ROM-DOS, 4690 OS, PTS-DOS, Windows, FreeDOS, ReactOS |
| platform | Cross-platform |
| genre | Command |
| :: |
| name = vol
| logo =
| screenshot = Volume serial number.png
| screenshot size =
| caption = The Windows XP vol command
| developer = DR, Microsoft, IBM, Toshiba, ReactOS Contributors
| released =
| latest release version =
| latest release date =
| operating system = MS-DOS, PC DOS, MSX-DOS, FlexOS, SISNE plus, OS/2, eComStation, ArcaOS, DR DOS, ROM-DOS, 4690 OS, PTS-DOS, Windows, FreeDOS, ReactOS
| platform = Cross-platform
| genre = Command
| license =
| website =
::figure[src="https://upload.wikimedia.org/wikipedia/commons/0/06/ReactOS-0.4.13_vol_command_667x434.png" caption="The [[ReactOS]] vol command"]
::
vol is a shell command that reports identifying information about an accessible volume (a.k.a. logical drive) including its label and serial number.
The command is available in shells [COMMAND.COM](command-com) and [cmd.exe](cmd-exe). It is available in various operating systems including versions of
DOS,{{Citation
| last1 = Jamsa
| first1 = Kris A.
| title = DOS: The Complete Reference
| publisher = Osborne McGraw-Hill
| year = 1993
| isbn = 0078819040
| url = https://books.google.com/books?id=UW9GAAAAYAAJ
| postscript= .
FlexOS,
4690 OS,
OS/2,
Windows,
ReactOS,
PTS-DOS 2000 Pro,
and EFI shell.{{cite web
| url = http://software.intel.com/en-us/articles/efi-shells-and-scripting/
| title = EFI Shells and Scripting
| publisher = Intel
| access-date = 2013-09-25
In MS-DOS, it is available in versions 2 and later.
The [dir](dir-command) command also displays the volume label and serial number (if any).
Use
The command reports information about the volume associated with the working directory by default. If a drive letter is specified, then the command reports information about its associated volume. On Windows, the volume serial number is displayed only for disks formatted with MS-DOS version 4.0 or later. OS/2 allows the user to specify more than one drive.
Examples
In OS/2, the command line reports the label as "OS/2" and the serial number as "0815:1611" like:
::code[lang=text] The volume label in drive C is OS/2. The Volume Serial Number is 0815:1611. ::
In Windows, the command line reports the label as "Windows" and the serial number as "080F-100B" like:
::code[lang=doscon] Volume in drive C is Windows Volume Serial Number is 080F-100B ::
If drive had no label, "has no label" would have shown instead of "is Windows".
Supported file systems
References
References
- [https://www.computerhope.com/volhlp.htm MS-DOS and Windows command line vol command]
- "FlexOS™ User's Guide".
- (February 2022). "Unknown}}{{Dead link".
- "JaTomes Help - OS/2 Commands".
- [https://technet.microsoft.com/en-us/library/bb491030.aspx Microsoft TechNet Vol article]
- (4 November 2021). "Reactos/Reactos".
- (2003). "Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition". [[Microsoft Press]].
::callout[type=info title="Wikipedia Source"] This article was imported from Wikipedia and is available under the Creative Commons Attribution-ShareAlike 4.0 License. Content has been adapted to SurfDoc format. Original contributors can be found on the article history page. ::