27

How can I widen the Windows 7 command prompt window?

It's fixed at 80 columns in width and dragging the window edges won't let me make it any bigger than that.

slhck
  • 223,558
  • 70
  • 607
  • 592
user81430
  • 539
  • 1
  • 5
  • 10
  • Thanks for asking... apparently this is a common problem. Any idea why MS decided to make this obscure behavior the default? – Fixee Jul 16 '15 at 19:28

4 Answers4

30

Yes. To change the screen buffer or window size:

  • Click the icon at the left of the title bar.

  • Click Properties (or Defaults for persistent properties) Thanks @Scott

    Properties

  • Go to the Layout tab

  • Change the settings accordingly

    Layout

  • Click OK to save.

iglvzx
  • 23,459
  • 13
  • 85
  • 122
  • 4
    You can also click Defaults instead of Properties to make the changes stay when you close and re-open the command prompt. (you beat me to the answer, I was going to include pictures :) ) – Scott Chamberlain Mar 16 '12 at 21:16
  • A good solution to a problem that shouldn't even exist. Thanks to all. – user81430 Mar 19 '12 at 17:45
  • 1
    *> You can also click Defaults instead of Properties to make the changes stay when you close and re-open the command prompt.*   Actually, in Windows 7, the *Properties* and *Default* options [are the same](http://superuser.com/questions/323059/temporarily-changing-console-properties-in-windows-7). `:-(` – Synetech Mar 19 '12 at 18:41
13

You might want to try typing:

mode 120,100

Should widen it significantly.

slhck
  • 223,558
  • 70
  • 607
  • 592
Paperlantern
  • 3,682
  • 1
  • 14
  • 15
  • Awesome! I hope the setting is persistent, but this does what I wanted. – user81430 Mar 16 '12 at 21:18
  • Btw, I entered "help mode" on the command line to learn about the 'mode' command. The Help is rather cryptic but apparently the first number is the number of columns and the second is the number of lines. – user81430 Mar 16 '12 at 21:19
10

Type this on command line:

mode con:cols=140 lines=70

Where 140 is the width in columns and 70 is the height in lines.

iglvzx
  • 23,459
  • 13
  • 85
  • 122
Hamed
  • 5,750
  • 10
  • 31
  • 39
1

You can try Console2 on top of cmd.exe, which have (except other things) resizeable window

Lazy Badger
  • 3,676
  • 13
  • 12