Windows Command Line window has a fixed size. You can change it, but not on-the-fly, with a mouse.
But maybe it's just me or my system (Windows 7).
Can you dynamically resize Windows Command Line window?
In windows 7 use the mode command.
mode con:cols=80 lines=40
This is done via the Properties > Layout tab
of the window or the shortcut.
Detailed instructions - How to Make the Windows Command Prompt Wider
You can change the screen buffer size in the Layout tab of the Preferences dialog (click on the icon in the top left corner of the window to get to the menu). Making the screen buffer bigger will allow you to then change the window size.
If you do this though, the text will extend past the window and you will have to scroll to see it. There is no way to dynamically change the screen buffer size like you want AFAIK.
As other users have pointed out: it is impossible with standard cmd
. You can only adjust the window size via parameters.
I found an extension to cmd
called Console.
http://sourceforge.net/projects/console/?source=navbar
You just install/extract it and make it visible in the PATH
.
Console enables you to resize the window, set transparency, use tabs etc. etc. Very useful!
edit: a new project called cmder has emerged recently: https://github.com/cmderdev/cmder
It looks VERY promissing!!
via https://stackoverflow.com/a/35302566/923560 :
A simple command to fix the window size that I use all the time:
wmic
It will open the Windows Management Instrumentation Command-line and remove the size limits. Then just close it with Ctrl+C.
Windows 10 command prompt has that now. The buffer size automatically grows and shrinks when you use the resize arrows.
Reference:
You can also increase the command prompt window size through command lines
ex:mode 250
In the place of 250 add any value of your wish.