# Vol (command)

> Mediated Wiki article. Canonical URL: https://mediated.wiki/source/Vol_(command)
> Markdown URL: https://mediated.wiki/source/Vol_(command).md
> Source: https://en.wikipedia.org/wiki/Vol_(command)
> Source revision: 1330114850
> License: Creative Commons Attribution-ShareAlike 4.0 International (https://creativecommons.org/licenses/by-sa/4.0/)

{{lowercase title}}
{{Infobox software
| name                   = vol
| logo                   = 
| screenshot             = Volume serial number.png
| screenshot size        = 
| caption                = The [Windows XP](/source/Windows_XP) <code>vol</code> command
| developer              = [DR](/source/Digital_Research), [Microsoft](/source/Microsoft), [IBM](/source/IBM), [Toshiba](/source/Toshiba), ReactOS Contributors
| released               = {{Start date and age|1983|03}}
| latest release version = 
| latest release date    = 
| operating system       = [MS-DOS](/source/MS-DOS), [PC DOS](/source/IBM_PC_DOS), [MSX-DOS](/source/MSX-DOS), [FlexOS](/source/FlexOS), [SISNE plus](/source/SISNE_plus), [OS/2](/source/OS%2F2), [eComStation](/source/eComStation), [ArcaOS](/source/ArcaOS), [DR DOS](/source/DR_DOS), [ROM-DOS](/source/ROM-DOS), [4690 OS](/source/4690_Operating_System), [PTS-DOS](/source/PTS-DOS), [Windows](/source/Windows), [FreeDOS](/source/FreeDOS), [ReactOS](/source/ReactOS)
| platform               = [Cross-platform](/source/Cross-platform)
| genre                  = [Command](/source/Command_(computing))
| license                = 
| website                = 
}}
[[File:ReactOS-0.4.13 vol command 667x434.png|thumb|300px|The [ReactOS](/source/ReactOS) <code>vol</code> command]]

'''<code>vol</code>''' is a [shell](/source/Shell_(computing)) [command](/source/command_(computing)) that reports identifying information about an accessible [volume](/source/volume_(computing)) (a.k.a. logical drive) including its label and serial number.

The command is available in shells <code>[COMMAND.COM](/source/COMMAND.COM)</code> and <code>[cmd.exe](/source/cmd.exe)</code>.<ref>[https://www.computerhope.com/volhlp.htm MS-DOS and Windows command line vol command]</ref> It is available in various [operating system](/source/operating_system)s including versions of 
[DOS](/source/DOS),<ref name="Jamsa1993">{{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= .
}}</ref> 
[FlexOS](/source/FlexOS),<ref>{{cite web|url=http://www.bitsavers.org/pdf/digitalResearch/flexos/1073-2003_FlexOS_Users_Guide_V1.3_Nov86.pdf |archive-url=https://web.archive.org/web/20190925131719/http://bitsavers.org/pdf/digitalResearch/flexos/1073-2003_FlexOS_Users_Guide_V1.3_Nov86.pdf |archive-date=2019-09-25 | title=FlexOS™ User's Guide}}</ref> 
[4690 OS](/source/4690_Operating_System),<ref>{{cite web| url=https://archive.org/details/4690OSV6r2UsersGuide/page/n169 | title=Unknown}}{{Dead link|date=February 2022|fix-attempted=yes}}</ref> 
[OS/2](/source/OS%2F2),<ref>{{Cite web |url=http://www.jatomes.com/Help/Os2Cmd.php#VOL |title=JaTomes Help - OS/2 Commands |access-date=2019-07-21 |archive-date=2019-04-14 |archive-url=https://web.archive.org/web/20190414130029/http://www.jatomes.com/Help/Os2Cmd.php#VOL |url-status=dead }}</ref> 
[Windows](/source/Windows),<ref>[https://technet.microsoft.com/en-us/library/bb491030.aspx Microsoft TechNet Vol article]</ref> 
[ReactOS](/source/ReactOS),<ref>{{Cite web|url=https://github.com/reactos/reactos/blob/master/base/shell/cmd/vol.c|title = Reactos/Reactos|website = [GitHub](/source/GitHub)|date = 4 November 2021}}</ref> 
[PTS-DOS](/source/PTS-DOS) 2000 Pro,<ref>
{{cite web |title=PTS-DOS 2000 Pro User Manual |publisher=[Paragon Technology GmbH](/source/Paragon_Technology_GmbH) |location=Buggingen, Germany |date=1999 |url=http://download.paragon-software.com/doc/manual_dos_eng.pdf |access-date=2018-05-12 |url-status=live |archive-url=https://web.archive.org/web/20180512094512/http://download.paragon-software.com/doc/manual_dos_eng.pdf |archive-date=2018-05-12}}</ref>
and [EFI shell](/source/Unified_Extensible_Firmware_Interface).<ref name="EFI-Shells-and-Scripting">{{cite web
 | url = http://software.intel.com/en-us/articles/efi-shells-and-scripting/
 | title = EFI Shells and Scripting
 | publisher = [Intel](/source/Intel)
 | access-date = 2013-09-25
}}</ref>
In [MS-DOS](/source/MS-DOS), it is available in versions 2 and later.<ref name="RUNNINGMSDOS">{{Cite book|author-last=Wolverton|author-first=Van|title=Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition|date=2003|publisher=[Microsoft Press](/source/Microsoft_Press)|isbn=0-7356-1812-7}}</ref>

The <code>[dir](/source/dir_(command))</code> command also displays the volume label and serial number (if any).

==Use==
The command reports information about the volume associated with the [working directory](/source/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](/source/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 {{code |vol C:}} reports the label as "OS/2" and the serial number as "0815:1611" like:

<syntaxhighlight lang="text">
The volume label in drive C is OS/2.
The Volume Serial Number is 0815:1611.
</syntaxhighlight>

In Windows, the command line {{code |vol C:}} reports the label as "Windows" and the serial number as "080F-100B" like:

<syntaxhighlight lang="doscon">
Volume in drive C is Windows
Volume Serial Number is 080F-100B
</syntaxhighlight>

If drive {{mono |C:}} had no label, "has no label" would have shown instead of "is Windows".

==Supported file systems==
*[FAT12](/source/File_allocation_table)
*[FAT16](/source/File_allocation_table)
*[FAT32](/source/File_allocation_table)
*[exFAT](/source/exFAT)
*[NTFS](/source/NTFS)

==See also==
*[Label (command)](/source/Label_(command)) — Used to create, change and delete the disk volume label.
*[List of DOS commands](/source/List_of_DOS_commands)

==References==
{{Reflist}}

==Further reading==
*{{Cite book|author-last=Cooper|author-first=Jim|title=Special Edition Using MS-DOS 6.22, Third Edition|date=2001|publisher=[Que Publishing](/source/Que_Publishing)|isbn=978-0789725738}}
*{{Cite book|author1=Tim O'Reilly|author2=Troy Mott|author3=Walter Glenn|year=1999|title=Windows 98 in a Nutshell: A Desktop Quick Reference|publisher=[O'Reilly](/source/O'Reilly_Media)|isbn=978-1565924864|url-access=registration|url=https://archive.org/details/windows98innutsh00orei}}
*{{Cite book|author=John Paul Mueller|year=2007|title=Windows Administration at the Command Line for Windows Vista, Windows 2003, Windows XP, and Windows 2000|publisher=[John Wiley & Sons](/source/Wiley_(publisher))|isbn=978-0470165799}}

==External links==
{{Wikibooks|Guide to Windows Commands}}
*[https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/vol vol | Microsoft Docs]

{{Windows commands}}

Category:Internal DOS commands
Category:MSX-DOS commands
Category:OS/2 commands
Category:ReactOS commands
Category:Windows commands
Category:Microcomputer software
Category:Windows administration

---
Adapted from the Wikipedia article [Vol (command)](https://en.wikipedia.org/wiki/Vol_(command)) by Wikipedia contributors ([contributor history](https://en.wikipedia.org/wiki/Vol_(command)?action=history)). Available under [Creative Commons Attribution-ShareAlike 4.0 International](https://creativecommons.org/licenses/by-sa/4.0/). Changes may have been made.
