
vol commandvol is a shellcommand 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,[2]FlexOS,[3]4690 OS,[4]OS/2,[5]Windows,[6]ReactOS,[7]PTS-DOS 2000 Pro,[8] and EFI shell.[9] In MS-DOS, it is available in versions 2 and later.[10]
The 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 vol C: 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 vol C: reports the label as "Windows" and the serial number as "080F-100B" like:
Volume in drive C is WindowsVolume Serial Number is 080F-100BIf drive C: had no label, "has no label" would have shown instead of "is Windows".
Supported file systems
See also
- Label (command) — Used to create, change and delete the disk volume label.
- List of DOS commands
References
- ↑MS-DOS and Windows command line vol command
- ↑Jamsa, Kris A. (1993), DOS: The Complete Reference, Osborne McGraw-Hill, ISBN 0078819040.
- ↑"FlexOS™ User's Guide"(PDF). Archived from the original(PDF) on 2019-09-25.
- ↑"Unknown".
- ↑ "Ayuda de JaTomes - Comandos de OS/2" . Archivado del original el 14 de abril de 2019. Consultado el 21 de julio de 2019 .
- ↑ Artículo de Microsoft TechNet Vol.
- ↑ "Reactos/Reactos" . GitHub . 4 de noviembre de 2021.
- ↑ "Manual de usuario de PTS-DOS 2000 Pro" (PDF) . Buggingen, Alemania: Paragon Technology GmbH . 1999. Archivado (PDF) del original el 12 de mayo de 2018. Consultado el 12 de mayo de 2018 .
- ↑ "EFI Shells and Scripting" . Intel . Consultado el 25 de septiembre de 2013 .
- ↑ Wolverton, Van (2003). Ejecución de MS-DOS versión 6.22 (Edición del 20.º aniversario), 6.ª edición revisada . Microsoft Press . ISBN 0-7356-1812-7.
Lecturas adicionales
- Cooper, Jim (2001). Edición especial con MS-DOS 6.22, tercera edición . Que Publishing . ISBN 978-0789725738.
- Tim O'Reilly; Troy Mott; Walter Glenn (1999). Windows 98 en pocas palabras: una guía de referencia rápida para escritorio . O'Reilly . ISBN 978-1565924864.
- John Paul Mueller (2007). Administración de Windows desde la línea de comandos para Windows Vista, Windows 2003, Windows XP y Windows 2000. John Wiley & Sons . ISBN 978-0470165799.
Enlaces externos
- vol | Microsoft Docs
- Comandos de Windows
- Comandos internos de DOS
- Comandos de MSX-DOS
- Comandos de OS/2
- Comandos de ReactOS
- Software para microcomputadoras
- Administración de Windows