문제

I want to use batch to make small apps but the size of the window is too large. I can manually change it via properties but that is not what I need for multiple windows.

Is it possible to change the size of a command line window via batch?

도움이 되었습니까?

해결책

yes use this line after title

MODE CON:COLS=15 LINES=4

example...

@echo off
color 0b
MODE CON:COLS=30 LINES=15
ping -t www.google.com

hope this helps

다른 팁

You could use this code:

    MODE CON:cols=x lines=y

(x and y are changed to the numbers you want)
But you could also use:

    mode x,y

(With x being the columns and y being the lines)
Which I found to work better than the first one.

mode con cols=x lines=y

With x and y the desired number of colums and lines of the console

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top