Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: Screen resolution change in command line / DOS  (Read 3620 times)

0 Members and 1 Guest are viewing this topic.

MIRKOSOFT

    Topic Starter


    Hopeful

    Thanked: 2
    Screen resolution change in command line / DOS
    « 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

    patio

    • Moderator


    • Genius
    • Maud' Dib
    • Thanked: 1769
      • Yes
    • Experience: Beginner
    • OS: Windows 7
    Re: Screen resolution change in command line / DOS
    « Reply #1 on: August 27, 2018, 06:13:49 PM »
    Why DOS / ?
    " Anyone who goes to a psychiatrist should have his head examined. "

    MIRKOSOFT

      Topic Starter


      Hopeful

      Thanked: 2
      Re: Screen resolution change in command line / DOS
      « Reply #2 on: August 28, 2018, 05:26:42 PM »
      Understand not Q...

      No matter why, but how?

      Miro

      BC_Programmer


        Mastermind
      • Typing is no substitute for thinking.
      • Thanked: 1140
        • Yes
        • Yes
        • BC-Programming.com
      • Certifications: List
      • Computer: Specs
      • Experience: Beginner
      • OS: Windows 11
      Re: Screen resolution change in command line / DOS
      « Reply #3 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.
      I was trying to dereference Null Pointers before it was cool.