Displays the MS-DOS version number.
When you enter the VER command, MS-DOS displays the following message:
MS-DOS Version 6.22
or maybe something like this:
Windows 95 [Version 4.00.950]
Windows 95 [Version 4.00.1111] OSR2
Windows 98 [Version 4.10.1998]
Windows 98 [Version 4.10.2222] Win98SE, Second Edition
Windows Millennium [Version 4.90.3000] WinME
Windows NT Version 4.0
Microsoft Windows 2000 [Version 5.00.2195] %OS% = Windows_NT
Microsoft Windows XP [Version 5.1.2600] %OS% = Windows_NT
The below table were found in a reply by Outsider in NG: alt.msdos.batch:
Release Version File dates
Windows 95 retail, OEM 4.00.950 7/11/95
Windows 95 retail SP1 4.00.950A 7/11/95-12/31/95
OEM Service Release 2 4.00.1111* (4.00.950B) 8/24/96
OEM Service Release 2.1 4.03.1212-1214* (4.00.950B) 8/24/96-8/27/97
OEM Service Release 2.5 4.03.1214* (4.00.950C) 8/24/96-11/18/97
Windows 98 retail, OEM 4.10.1998 5/11/98
Windows 98 Second Edition 4.10.2222A 4/23/99
Windows Millennium 4.90.3000
Note: If you uninstall something (for example the USB support), then you may
see that your version number could be reduced.
Hint: Try right click the "My Computer" icon and select properties.
Moreover, Outsider said:
No version of MS-DOS after MS-DOS 6.22 has been released as a
'standalone version' which is why they report the Windows Version.
(And yes it is a ploy by Microsoft to convince you that Windows is
the OS and not DOS).
Main difference between MS-DOS 7.0 and 7.10 is Large Disk Support.
Windows 95 and 95A runs on MS-DOS 7.0
Windows 95B or C (aka OSR 2) runs on MS-DOS 7.10
Windows 98 and 98se runs on MS-DOS 7.10
Windows Me runs on MS-DOS 8.0
Windows Whistler (aka XP) runs on ?
Windows 2000 (aka NT5) does not run on DOS!
Note: Frank-Peter has reported that
Windows Ver. NT 5 displays Microsoft Windows 2000 [Version 5.00.2195].
About how to right click the file %WINDIR%\WINVER.EXE etc., see: <Microsoft>
Intern link: MORE Versions.
If you got DOS Version 5, then I would suggest that you get either DOS 6.22,
Win95B or Win98. Windows 20xx is to slow and instead of making compatibility
and small files, Microsoft want to replace your files with slow/large files.
For example in DOS version 7, the below ,exit:
ECHO RENAME OldName.tmp NewName.*,exit> SomeFile.bat
do works but not in DOS 6.22. So, where is the free patch by MS to download,
which can be used to update Win95A to Win98SE and which also removes all the
not compatible options from DOS version 7x? It isn't difficult to understand
why the most will get Linux or whatever instead of MS-DOS.
One line of code can be used to determine the DOS version:
IF NOT EXIST "NUL" ECHO. Old DOS Version
FOR %%v in (/a) do IF %%v==a ECHO. Old DOS Version?
FOR %%v in (/a) do IF %%v==/A ECHO/Perhaps Win9x?
-- Benny, PS. tested in DOS 6.22, Win95B and Win98.
Besides the above version numbers, the below batch example should also works
with any other OS version.
if exist "nul" goto Win9x
echo. DOS Version 6.22 or less.
echo. DOS Version 7 (Win9x) or later...
:: Link; Get input in all OS: News, page 11.