Programming Field

Ver - DOS/Command Prompt Reference

Displays the version of MS-DOS or Windows.

Syntax

ver

Details

Usage of Ver

Ver outputs the version of the currently running prompt on the screen. Particularly in MS-DOS, this version depends on the contents of IO.SYS and MSDOS.SYS, and different versions may be displayed depending on the boot disk used.

[MS-DOS, Windows 95/98/Me] If you want to provide compatibility information from a different version for DOS applications, you can use Setver.

[Windows 10 or later] The version is outputted, including the revision number. This allows determining which features of Windows are installed.