Microsoft KB Archive/71630

= Running an Application May Change MODE Setting of 43 or 50 =

Article ID: 71630

Article Last Modified on 11/16/2006

-

APPLIES TO


 * Microsoft MS-DOS 4.0 Standard Edition
 * Microsoft MS-DOS 4.01 Standard Edition
 * 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 Q71630



SUMMARY
You can set the number of lines on a display by using the following MS-DOS MODE command   mode con lines =  where  is the number of lines on the display. Valid n values are 25, 43, and 50. If this command is used with n=43 or n=50, and another application is started, the number of lines may default back to 25 when the application is terminated.

NOTE: This problem does not occur with Microsoft MS-DOS version 6.0.



MORE INFORMATION
For example, this behavior occurs with the execution of MS-DOS Shell. When  is set to 43 and Shell is started, the number of lines on the screen changes to 25 within Shell. After Shell is ended and control is given back to MS-DOS, the number of display lines remains at 25 instead of returning to 43, which was set by the MODE command.

This behavior may occur with certain applications because the application does not save the video state prior to starting the application. Thus, when the application is terminated, the MS-DOS line display state used may be the same as in the application or reset back to the default line number value of 25.

A simple batch file with the following command lines can correct this occurrence (where  is the MODE line setting, such as 43 or 50):   test.bat 

mode con lines = %1 The &quot;%1&quot; parameter will receive the  value of TEST.BAT.

Additional query words: 4.0 4.00 4.01 5.0 5.00 5.0a 5.00a 6.00 6.20 6.21 6.22

Keywords: KB71630

-

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

© Microsoft Corporation. All rights reserved.