How to change Screen buffer size in Windows Command Prompt from batch script

后端 未结 14 1572
清歌不尽
清歌不尽 2020-12-02 09:59

I know you can do right click properties ->layout and there change it manually.

But how would you go about changing it from a Windows batch script?

I know yo

14条回答
  •  佛祖请我去吃肉
    2020-12-02 10:37

    I was just giving a try for max lines on windows 7 i can set using mode con command and found it to be 32766 2^15-2 and you can set it with following command

    mode con lines=32766
    

    although you can set screen buffer size from the GUI too, but the max you can get is 9999.

提交回复
热议问题