Computer Hope

Microsoft => Microsoft DOS => Topic started by: MIRKOSOFT on August 27, 2018, 06:02:01 PM

Title: Screen resolution change in command line / DOS
Post by: MIRKOSOFT on August 27, 2018, 06:02:01 PM
Hi!

I need to adjust screen resolution in MS-DOS by batch or command.
I know any changes are possible, but at what level?

The same can be useful in modern Windows... by command line or batch file.
Even maybe in multi monitor systems.

Is it possible?

Thank you for each suggestion or help.
Miro
Title: Re: Screen resolution change in command line / DOS
Post by: patio on August 27, 2018, 06:13:49 PM
Why DOS / ?
Title: Re: Screen resolution change in command line / DOS
Post by: MIRKOSOFT on August 28, 2018, 05:26:42 PM
Understand not Q...

No matter why, but how?

Miro
Title: Re: Screen resolution change in command line / DOS
Post by: BC_Programmer on August 28, 2018, 06:26:30 PM
For MS-DOS, the mode command is probably the best you'll find. You can use mode con:lines=50 for example to change from 25 lines to 50 lines on-screen.

MS-DOS itself operates in text mode, so the actual screen resolution itself is largely measured in characters like this.

Mind you, I recall, ages ago, on my 386 that my Trident Video Card's drivers included a utility that could crank up the number of lines up to 100 and somehow had MS-DOS itself working through a graphics  mode, but I don't know the details of that.

For Windows you could use a utility like multires. Or write your own program to call from the batch file which changes the resolution.