ver (command)
{{Short description|Command in many command-line interpreters}}
{{lowercase title}}
{{Infobox software
| name = ver
| logo =
| screenshot = Dosver.png
| screenshot size = 250px
| caption = Running ver
on MS-DOS
| developer = DEC, TSC, Heath Company, Microsoft, IBM, DR, Novell, Toshiba, JP Software, ReactOS Contributors
| released =
| latest release version =
| latest release date =
| operating system = OS/8, FLEX, HDOS, DOS, MSX-DOS, FlexOS, SpartaDOS X, 4690 OS, OS/2, Windows, ReactOS, KolibriOS, SymbOS, DexOS
| platform = Cross-platform
| genre = Command
| license =
| website =
}}
In computing, ver
(short for version) is a command in various command-line interpreters (shells) such as COMMAND.COM
, cmd.exe
and 4DOS/4NT. It prints the name and version of the operating system, the command shell, or in some implementations the version of other commands. It is roughly equivalent to the Unix command uname
.
Implementations
File:ReactOS-0.4.13 cmd.exe Command Prompt 667x434.png]]
The command is available in FLEX, HDOS,{{cite web |title=Software Reference Manual HDOS SYSTEM Chapter 2 General Operations |language=en |publisher=Heath Company|url=http://sebhc.lesbird.com/documentation/software/HDOS-2/HDOS_Reference_Chapter2.pdf |access-date=2020-02-08 |archive-date=2017-08-07 |archive-url=https://web.archive.org/web/20170807205702/http://sebhc.lesbird.com/documentation/software/HDOS-2/HDOS_Reference_Chapter2.pdf |url-status=dead }} DOS, FlexOS,[http://www.bitsavers.org/pdf/digitalResearch/flexos/1073-2003_FlexOS_Users_Guide_V1.3_Nov86.pdf FlexOS™ User's Guide] bitsavers.org {{Webarchive|url=https://web.archive.org/web/20190925131719/http://bitsavers.org/pdf/digitalResearch/flexos/1073-2003_FlexOS_Users_Guide_V1.3_Nov86.pdf |date=2019-09-25 }} SpartaDOS X,{{Cite web |url=http://sdx.atari8.info/sdx_files/4.48/SDX448_User_Guide.pdf |title=SpartaDOS X 4.48 User Guide |access-date=2019-03-17 |archive-date=2021-10-10 |archive-url=https://web.archive.org/web/20211010113045/http://sdx.atari8.info/sdx_files/4.48/SDX448_User_Guide.pdf |url-status=live }} 4690 OS,https://archive.org/details/4690OSV6r2UsersGuide/page/n169 {{Dead link|date=February 2022| fix-attempted=yes}} OS/2,{{Cite web |url=http://www.jatomes.com/Help/Os2Cmd.php#VER |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#VER |url-status=dead }} Windows,{{Cite web |url=https://technet.microsoft.com/en-us/library/bb491028.aspx |title=Microsoft TechNet Ver article |date=11 September 2009 |access-date=2018-04-02 |archive-date=2018-02-03 |archive-url=https://web.archive.org/web/20180203082427/https://technet.microsoft.com/en-us/library/bb491028.aspx |url-status=live }} and ReactOS.{{Cite web|url=https://github.com/reactos/reactos/blob/master/base/shell/cmd/ver.c|title = Reactos/Reactos|website = GitHub|date = 4 November 2021}} It is also available in the open-source MS-DOS emulator DOSBox, in the KolibriOS Shell{{Cite web|url=http://wiki.kolibrios.org/wiki/Shell|title=Shell - KolibriOS wiki}} and in the 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
}}
=TSC FLEX=
In TSC's FLEX operating system, the VER
command is used to display the version number of a utility or program.{{Cite web |url=http://www.flexusergroup.com/flexusergroup/pdfs/swflexum.pdf |title=FLEX 9.0 User's Manual |access-date=2019-06-10 |archive-date=2021-07-25 |archive-url=https://web.archive.org/web/20210725110201/http://www.flexusergroup.com/flexusergroup/pdfs/swflexum.pdf |url-status=live }} In some versions the command is called VERSION
.{{Cite web |url=http://www.flexusergroup.com/flexusergroup/pdfs/miniflex.pdf |title=FLEX User's Manual (miniFLEX) |access-date=2019-06-10 |archive-date=2021-07-25 |archive-url=https://web.archive.org/web/20210725074931/http://www.flexusergroup.com/flexusergroup/pdfs/miniflex.pdf |url-status=live }}{{Cite web |url=http://www.flexusergroup.com/flexusergroup/pdfs/flex2um.pdf |title=FLEX 2.0 User's Manual |access-date=2019-06-10 |archive-date=2021-07-25 |archive-url=https://web.archive.org/web/20210725080616/http://www.flexusergroup.com/flexusergroup/pdfs/flex2um.pdf |url-status=live }}
=DOS=
The command is available in MS-DOS versions 2 and later.{{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}}
MS-DOS versions up to 6.22 typically derive the DOS version from the DOS kernel. This may be different from the string printed on start-up. The argument "/r" can be added to give more information and to list whether DOS is running in the HMA (high memory area).
PC DOS typically derives the version from an internal string in command.com
(so PC DOS 6.1 command.com
reports the version as 6.10, although the kernel version is 6.00.)
DR DOS 6.0 also includes an implementation of the {{code|ver}} command.{{Cite web |url=https://www.4corn.co.uk/archive/docs/DR%20DOS%206.0%20User%20Guide-opt.pdf |title=DR DOS 6.0 User Guide Optimisation and Configuration Tips |access-date=2019-08-13 |archive-date=2019-09-30 |archive-url=https://web.archive.org/web/20190930135943/http://www.4corn.co.uk/archive/ |url-status=live }} DR-DOS reports whatever value the environment variable OSVER
reports.
PTS-DOS includes an implementation of this command that can display, modify, and restore the DOS version number.
{{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}}
=IBM OS/2=
OS/2 command.com
reports an internal string, with the OS/2 version. The underlying kernel here is 5.00, but modified to report x0.xx (where x.xx is the OS/2 version).
=Microsoft Windows=
Windows 9x command.com
report a string from inside command.com. The build version (e.g. 2222), is also derived from there.
Windows NT command.com
reports either the 32-bit processor string (4nt, cmd), or under some loads, MS-DOS 5.00.500, (for all builds). The underlying kernel reports 5.00 or 5.50 depending on the interrupt. MS-DOS 5.00 commands run unmodified on NT.
Microsoft Windows also includes a GUI (Windows dialog) variant of the command called winver
, which shows the Service Pack or Windows Update installed (if any) as well as the version. In Windows before Windows for Workgroups 3.11, running winver
from DOS reported an embedded string in winver.exe
.
Windows also includes the setver
command that is used to set the version number that the MS-DOS subsystem (NTVDM) reports to a DOS program.{{Cite web |url=https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-xp/bb490895(v%3dtechnet.10) |title=MS-DOS subsystem commands |access-date=2019-04-21 |archive-date=2019-04-13 |archive-url=https://web.archive.org/web/20190413195532/https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-xp/bb490895%28v%3dtechnet.10%29 |url-status=live }} This command is not available on Windows XP 64-Bit Edition.{{Cite web |url=https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-xp/bb490782(v=technet.10) |title=Setver {{!}} Microsoft Docs |date=11 September 2009 |access-date=2019-08-15 |archive-date=2019-08-15 |archive-url=https://web.archive.org/web/20190815224731/https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-xp/bb490782(v%3Dtechnet.10) |url-status=live }}
=DOSBox=
In DOSBox, the command is used to view and set the reported DOS version. It also displays the running DOSBox version.
The syntax to set the reported DOS version is the following:
VER SET
The parameter MAJOR
is the number before the period, and MINOR
is what comes after.
Versions can range from 0.0 to 255.255. Any values over 255 will loop from zero. (That is, 256=0, 257=1, 258=2, etc.){{Cite web |url=https://www.dosbox.com/wiki/Commands |title=Commands - DOSBoxWiki |access-date=2019-08-14 |archive-date=2019-08-14 |archive-url=https://web.archive.org/web/20190814153508/https://www.dosbox.com/wiki/Commands |url-status=live }}
=Others=
AmigaDOS provides a version
command. It displays the current version number of the Kickstart and Workbench.{{Cite book|url=https://archive.org/details/1988-rugheimer-spanik-amigados-quick-reference|isbn = 9781557550491|title = AmigaDOS quick reference|year = 1988|last1 = Rugheimer|first1 = Hannes| publisher=Abacus }} The DEC OS/8 CCL ver
command prints the version numbers of both the OS/8 Keyboard Monitor and CCL."Concise Command Language" (CCL).{{cite web
|url=http://bitsavers.trailing-edge.com/pdf/dec/pdp8/os8/OS8_Handbook_Apr1974.pdf
|title=OS/8 Handbook |date=April 1974 |access-date=28 November 2017}}
Syntax
C:\WINDOWS\system32>ver
Microsoft Windows [Version 10.0.10586]
Some versions of MS-DOS support an undocumented /r
switch, which will show the revision as well as the version.
Version list
The following table lists version numbers from various Microsoft operating systems:{{cite web|url=http://www.robvanderwoude.com/ver.php|title=VER output values|work=robvanderwoude.com}}{{cite web|url=https://www.gaijin.at/en/infos/windows-version-numbers|title=Windows Version Numbers|work=gaijin.at}}{{Cite web|url=https://msdn.microsoft.com/en-us/library/windows/desktop/ms724832(v=vs.85).aspx|title = Operating System Version - Win32 apps| date=5 November 2021 }}
:
class="wikitable" | ||
scope="col" | Official
! scope="col" | OS ! scope="col" | Version number | ||
---|---|---|
Windows 1.0 | 1.04 | |
Windows 2.0 | 2.11 | |
Windows 3.0 | 3 | |
Windows NT 3.1 | 3.10.528 | |
Windows for Workgroups 3.11 | 3.11 | |
Windows NT 3.5 | 3.50.807 | |
Windows NT 3.51 | 3.51.1057 | |
Windows 95 | 4.00.950 | |
Windows 95 OSR2 | 4.00.1111 | |
Windows 95 OSR2.1 | 4.03.1212-1214 | |
Windows 95 OSR2.5 | 4.03.1214-1216 | |
Windows NT 4.0 | 4.00.1381 | |
Windows 98 | 4.10.1998 | |
Windows 98 SE | 4.10.2222 | |
- | Windows ME Beta | 4.90.2380.2 |
- | Windows ME Beta 2 | 4.90.2419 |
Windows ME | 4.90.3000 | |
- | Windows NT 5.0 Beta | 5.00.1515 |
- | Windows 2000 Beta 3 | 5.00.2031 |
- | Windows 2000 RC2 | 5.00.2128 |
- | Windows 2000 RC3 | 5.00.2183 |
X | Windows 2000 | 5.00.2195 |
X | Windows 2000 Professional | 5.0.2195 |
- | Windows XP RC1 | 5.1.2505 |
Windows XP | 5.1.2600 | |
Windows XP SP1 | 5.1.2600.1105-1106 | |
Windows XP SP2 | 5.1.2600.2180 | |
Windows XP SP3 | 5.1.2600 | |
Windows .NET Server interim | 5.2.3541 | |
- | Windows .NET Server Beta 3 | 5.2.3590 |
Windows .NET Server RC1 | 5.2.3660 | |
Windows .NET Server 2003 RC2 | 5.2.3718 | |
- | Windows Server 2003 Beta | 5.2.3763 |
Windows XP Professional x64 Edition Windows Server 2003 Windows Home Server | 5.2.3790 | |
Windows Server 2003 SP1 | 5.2.3790.1180 | |
Windows Server 2003 | 5.2.3790.1218 | |
Windows Longhorn | 6.0.5048 | |
- | Windows Vista Beta 1 | 6.0.5112 |
- | Windows Vista CTP | 6.0.5219 |
- | Windows Vista TAP Preview | 6.0.5259 |
- | Windows Vista CTP December | 6.0.5270 |
- | Windows Vista CTP February | 6.0.5308 |
- | Windows Vista CTP Refresh | 6.0.5342 |
- | Windows Vista April EWD | 6.0.5365 |
- | Windows Vista Beta 2 Preview | 6.0.5381 |
- | Windows Vista Beta 2 | 6.0.5384 |
- | Windows Vista Pre-RC1 Build 5456 | 6.0.5456 |
- | Windows Vista Pre-RC1 Build 5472 | 6.0.5472 |
- | Windows Vista Pre-RC1 Build 5536 | 6.0.5536 |
- | Windows Vista RC1 | 6.0.5600.16384 |
- | Windows Vista Pre-RC2 | 6.0.5700 |
- | Windows Vista Pre-RC2 Build 5728 | 6.0.5728 |
- | Windows Vista RC2 | 6.0.5744.16384 |
- | Windows Vista Pre-RTM Build 5808 | 6.0.5808 |
- | Windows Vista Pre-RTM Build 5824 | 6.0.5824 |
- | Windows Vista Pre-RTM Build 5840 | 6.0.5840 |
Windows Vista | 6.0.6000 | |
Windows Vista RTM | 6.0.6000.16386 | |
Windows Vista SP1 Windows Server 2008 SP1 | 6.0.6001 | |
Windows Vista SP2 Windows Server 2008 SP2 | 6.0.6002 | |
Windows 7 Windows Server 2008 R2 | 6.1.7600 | |
Windows 7 Windows Server 2008 R2 RTM | 6.1.7600.16385 | |
X | Windows 7 SP1 Windows Server 2008 R2 SP1 | 6.1.7601 |
Windows Home Server 2011 | 6.1.8400 | |
- | Windows Server 2012 Developer Preview Windows 8 Developer Preview | 6.2.8102 |
Windows 8 Windows Server 2012 | 6.2.9200 | |
Windows 8 RTM | 6.2.9200.16384 | |
Windows Phone 8 | 6.2.10211 | |
Windows 8.1 Windows Server 2012 R2 | 6.3.9200 | |
Windows 8.1 Update 1 Windows Server 2012 R2 | 6.3.9600 | |
- | Windows 10 Technical Preview 1 | 6.4.9841 |
- | Windows 10 Technical Preview 2 | 6.4.9860 |
- | Windows 10 Technical Preview 3 | 6.4.9879 |
- | Windows 10 Technical Preview 4 | 10.0.9926 |
- | Windows 10 Technical Preview 5 | 10.0.10041 |
- | Windows 10 Technical Preview 6 | 10.0.10049 |
X | Windows 10 Threshold 1 (Windows 10 RTM) | 10.0.10240 |
X | Windows 10 Threshold 2 (November Update, Version 1511) | 10.0.10586 |
X | Windows 10 Redstone 1 (Anniversary Update, Version 1607) Windows Server 2016 | 10.0.14393 |
- | Windows 10 Insider Preview | 10.0.14915 |
X | Windows 10 Redstone 2 (Creators Update, Version 1703) | 10.0.15063 |
X | Windows 10 Redstone 3 (Fall Creators Update, Version 1709) | 10.0.16299 |
X | Windows 10 Redstone 4 (April 2018 Update, Version 1803) | 10.0.17134 |
X | Windows 10 Redstone 5 (October 2018 Update, Version 1809) | 10.0.17763 |
X | Windows 10 19H1 May 2019 (Version 1903) | 10.0.18362 |
X | Windows 10 19H2 November 2019 (Version 1909) | 10.0.19002 |
X
|Windows 10 20H1 May 2020 (Version 2004) |10.0.19041 | ||
X
|Windows 10 20H2 October 2020 (Version 20H2) |10.0.19042 | ||
X
|Windows 10 21H1 May 2021 (Version 2009) |10.0.19043 | ||
X
|Windows 10 21H2 November 2021 (Version 21H2) |10.0.19044 | ||
X
|Windows 10 22H2 October 2022 (Version 22H2) |10.0.19045 | ||
X
|Windows 11 October 2021 (RTM) |10.0.22000 | ||
X
|Windows 11 September 2022 (Version 22H2) |10.0.22621 | ||
X
|Windows 11 October 2023 (Version 23H2) |10.0.22631 | ||
X
|Windows 11 October 2024 (Version 24H2) |10.0.26100 |
See also
References
{{Reflist}}
Further reading
- {{Cite book|author-last=Wolverton|author-first=Van|title=MS-DOS Commands: Microsoft Quick Reference, 4th Revised edition|date=1990|publisher=Microsoft Press|isbn=978-1556152894}}
- {{Cite book|author1=Kathy Ivens|author2=Brian Proffit|year=1993|title=OS/2 Inside & Out|publisher=Osborne McGraw-Hill|isbn=978-0078818714}}
- {{Cite book|first=Æleen|last=Frisch|year=2001|title=Windows 2000 Commands Pocket Reference|publisher=O'Reilly|isbn=978-0-596-00148-3}}
External links
{{Wikibooks|Guide to Windows Commands}}
- [https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/ver ver | Microsoft Docs]
- [https://www.windows-commandline.com/find-windows-os-version-from-command/ How to find Windows version, service pack number and edition from CMD]
- [http://thelostartofbatchscript.blogspot.com/2010/09/how-to-determine-what-version-of.html How to determine what version of Windows you are running in a batch file]
{{Windows commands}}
Category:Internal DOS commands