{{lowercase title}} {{Infobox software | name = vol | logo = | screenshot = Volume serial number.png | screenshot size = | caption = The Windows XP <code>vol</code> command | developer = DR, Microsoft, IBM, Toshiba, ReactOS Contributors | released = {{Start date and age|1983|03}} | 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 = }} [[File:ReactOS-0.4.13 vol command 667x434.png|thumb|300px|The ReactOS <code>vol</code> command]]
'''<code>vol</code>''' 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 <code>COMMAND.COM</code> and <code>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 systems including versions of 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,<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,<ref>{{cite web| url=https://archive.org/details/4690OSV6r2UsersGuide/page/n169 | title=Unknown}}{{Dead link|date=February 2022|fix-attempted=yes}}</ref> OS/2,<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,<ref>[https://technet.microsoft.com/en-us/library/bb491030.aspx Microsoft TechNet Vol article]</ref> ReactOS,<ref>{{Cite web|url=https://github.com/reactos/reactos/blob/master/base/shell/cmd/vol.c|title = Reactos/Reactos|website = GitHub|date = 4 November 2021}}</ref> PTS-DOS 2000 Pro,<ref> {{cite web |title=PTS-DOS 2000 Pro User Manual |publisher=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.<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 | access-date = 2013-09-25 }}</ref> In 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|isbn=0-7356-1812-7}}</ref>
The <code>dir</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 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 {{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 *FAT16 *FAT32 *exFAT *NTFS
==See also== *Label (command) — Used to create, change and delete the disk volume label. *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|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|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|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