Microsoft KB Archive/74765

= Corruption of the SETVER Table =

Article ID: 74765

Article Last Modified on 5/12/2003

-

APPLIES TO


 * Microsoft MS-DOS 5.0 Standard Edition
 * Microsoft MS-DOS 5.0a
 * Microsoft MS-DOS 6.0 Standard Edition
 * Microsoft MS-DOS 6.2 Standard Edition
 * Microsoft MS-DOS 6.21 Standard Edition
 * Microsoft MS-DOS 6.22 Standard Edition

-



This article was previously published under Q74765



SUMMARY
You can use the MS-DOS SETVER.EXE program to report a version number of MS-DOS that is different than the current version to programs that do a version check. This allows some programs to run in your installed MS-DOS version where they would otherwise be unable to.

SETVER is &quot;self modifying,&quot; that is, the location of the SETVER version table is inside the SETVER.EXE file. Under certain circumstances, it is possible for the file to become corrupted.



MORE INFORMATION
If you add a new program to the SETVER table and the length of the previous entries plus the length of the new entry equals 2048 bytes (the maximum size of the version table), SETVER reports that the program was added successfully. However, the program is not in fact added, and the table is corrupted. SETVER returns an ERRORLEVEL code of 0 (zero). If you issue the SETVER command, the corrupted table is displayed and the new entry is not shown on the table.

If you attempt to add another program, SETVER returns an ERRORLEVEL code of 11, which indicates to a corrupted version table.

If an addition exceeds the 2048- byte limit, the message &quot;There is no more space in version table new entries&quot; appears, and the return code is 14.

Additional query words: 6.22 5.00 3rdparty corrupt corruption 6.00 6.20

Keywords: KB74765

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.