Vol (command) explained

vol
Developer:DR, Microsoft, IBM, Toshiba, ReactOS Contributors
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

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]] and [[cmd.exe]].[1] It is available in various operating systems including versions of DOS, FlexOS,[2] 4690 OS,[3] OS/2,[4] Windows,[5] ReactOS,[6] PTS-DOS 2000 Pro,[7] and EFI shell.[8] In MS-DOS, it is available in versions 2 and later.[9]

The [[dir (command)|dir]] 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:

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:

Volume in drive C is WindowsVolume Serial Number is 080F-100B

If drive had no label, "has no label" would have shown instead of "is Windows".

Supported file systems

See also

Further reading

External links

Notes and References

  1. https://www.computerhope.com/volhlp.htm MS-DOS and Windows command line vol command
  2. Web site: FlexOS™ User's Guide. https://web.archive.org/web/20190925131719/http://bitsavers.org/pdf/digitalResearch/flexos/1073-2003_FlexOS_Users_Guide_V1.3_Nov86.pdf . 2019-09-25 .
  3. Web site: Unknown.
  4. Web site: JaTomes Help - OS/2 Commands . 2019-07-21 . 2019-04-14 . https://web.archive.org/web/20190414130029/http://www.jatomes.com/Help/Os2Cmd.php#VOL . dead .
  5. https://technet.microsoft.com/en-us/library/bb491030.aspx Microsoft TechNet Vol article
  6. Web site: Reactos/Reactos. GitHub. 4 November 2021.
  7. Web site: PTS-DOS 2000 Pro User Manual . . Buggingen, Germany . 1999 . 2018-05-12 . live . https://web.archive.org/web/20180512094512/http://download.paragon-software.com/doc/manual_dos_eng.pdf . 2018-05-12.
  8. Web site: EFI Shells and Scripting . . 2013-09-25.
  9. Book: Wolverton. Van. Running MS-DOS Version 6.22 (20th Anniversary Edition), 6th Revised edition. 2003. Microsoft Press. 0-7356-1812-7.