The Computer Oracle

Can you dynamically resize Windows Command Line window?

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: RPG Blues Looping

--

Chapters
00:00 Can You Dynamically Resize Windows Command Line Window?
00:22 Answer 1 Score 5
00:50 Answer 2 Score 9
01:04 Accepted Answer Score 5
01:43 Answer 4 Score 12
01:51 Thank you

--

Full question
https://superuser.com/questions/584027/c...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#windows7 #windows #commandline

#avk47



ANSWER 1

Score 12


In windows 7 use the mode command.

mode con:cols=80 lines=40



ANSWER 2

Score 9


This is done via the Properties > Layout tab of the window or the shortcut.

enter image description here

Detailed instructions - How to Make the Windows Command Prompt Wider




ANSWER 3

Score 5


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.




ACCEPTED ANSWER

Score 5


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!!