SetVer

Index

Reports a Dos version number to programs that were designed for earlier versions of MS-Dos and do not work with the current version.

Syntax:

To display the current version table:
SETVER

To add an entry:
SETVER progname n.nn

To delete an entry:
SETVER progname /D [/Q]
prognameThe filename of the program
n.nnThe Dos version to be reported to the program.
/DDeletes the version-table entry for the specified program.
/QHides the message typically displayed during deletion of version-table entry.

Notes:

Many programs designed to run with a previous version of Dos will run without any problems under MS-Dos 7. In some cases, however, a program will check the system Dos version to confirm that it is the one with which it was designed to work. By including such a program, with its Dos version, in the SETVER table, the program interprets Dos 7 as whatever version is appropriate. Considerable effort has been put into designing each version of Dos to be compatible with its predecessors, but if a program is not compatible with Dos7, using SETVER will not solve the problem.

When an addition is made to the version table, the following message is displayed (as long as no errors are detected):

C:\WINDOWS>setver share.exe 4.0
 
WARNING - The application you are adding to the Windows version table
may not have been verified by Microsoft on this version of Windows.
Please contact your software vendor for information on whether this
application will operate properly under this version of Windows.
If you execute this application by instructing Windows to report a
different MS-DOS version number, you may lose or corrupt data, or
cause system instabilities. In that circumstance, Microsoft is not
responsible for any loss or damage.
 
Version table successfully updated.
The version change will take effect the next time you restart your system.
 
C:\WINDOWS>_

When a program is removed from the version table, the following message is displayed (as long as no errors are detected):

C:\WINDOWS>setver share.exe /d
 
Version table successfully updated.
The version change will take effect the next time you restart your system.
 
C:\WINDOWS>_

When Windows 95 is installed, the SETVER table includes the following entries:

 Program       Ver.  Program       Ver.  Program           Ver.
KERNEL.EXE      5.00 NETX.COM        5.00 NETX.EXE        5.00 NET5.COM        5.00 BNETX.COM       5.00 BNETX.EXE       5.00 EMSNETX.EXE     5.00 EMSNET5.EXE     5.00 XMSNETX.EXE     5.00 XMSNET5.EXE     5.00 DOSOAD.SYS      5.00 REDIR50.EXE     5.00 REDIR5.EXE      5.00 REDIRALL.EXE    5.00 REDIRNP4.EXE    5.00 EDLIN.EXE       5.00 BACKUP.EXE      5.00 ASSIGN.COM      5.00 EXE2BIN.EXE     5.00 JOIN.EXE        5.00 RECOVER.EXE     5.00 GRAFTABL.COM    5.00 LMSETUP.EXE     5.00 STACKER.COM     5.00 NCACHE.EXE      5.00 NCACHE2.EXE     5.00 IBMCACHE.SYS    5.00 XTRADRV.SYS     5.00 2XON.COM        5.00 WINWORD.EXE     4.10 EXCEL.EXE       4.10 LL3.EXE         4.01 REDIR4.EXE      4.00 REDIR40.EXE     4.00 MSREDIR.EXE     4.00 WIN200.BIN      3.40 METRO.EXE       3.31 DISKFIX.EXE     1.00 10NET.COM       6.20 DBLSPACE.EXE    6.20 APPEND.EXE      6.20/7.10* BASIC.COM       6.20/7.10* BASICA.COM      6.20/7.10* DISKCOMP.EXE    6.20/7.10* EXTDISK.SYS     6.20/7.10* GRAPHICS.COM    6.20/7.10* FASTOPEN.EXE    6.20/7.10* MODE_DOS.COM    6.20/7.10* PRINT.EXE       6.20/7.10* REPLACE.EXE     6.20/7.10* RESTORE.EXE     6.20/7.10* SCPLUS.EXE      6.20/7.10* SCSIC710.SYS    6.20/7.10* TREE.COM        6.20/7.10* VDISK.SYS       6.20/7.10*
* Where two values are given, the first refers to the version assigned in W95 Upgrade version, and the second in Win95B OSR2.5.

Exit Codes:

0The SETVER command was completed without errors.
1An invalid command switch was specified.
2An invalid filename was specified.
3Insufficient system memory to carry out the command.
4An invalid version-number format was specified.
5The specified entry in the version table was not found.
6SETVER could not find "setver.exe" .
7An invalid drive was specified.
8There were too many command line parameters.
9SETVER detected missing command line parameters
10Error detected while reading "setver.exe".
11"Setver.exe" is corrupt.
12The specified "setver.exe" does not support a version table.
13Insufficient space in the version table for a new entry.
14Error detected while writing to "setver.exe".

File Details:

File NameDefault LocationDos Ver.Win Ver.SizeDateSource
Setver.exec:\windows 7.0Win95 18 939111/07/95win95_09.cab
7.1Win95 (OSR2.x) 18 939224/08/96win95_14.cab
Win98 18 939*11/05/98win98_42.cab
Win98 SE 18 939323/04/99win98_46.cab

Superscripts denote which same size files, if any, are identical (using FC). * not compared.


This page last revised:
January 1, 2003.