I work a LOT in the windows command line. Unlike other windows, it doesn't maximize - it just goes a big as it can depending on the buffer size. Is there any way I can get the CMD to act like the PuTTY console, flowing with the resize?
NOTE: The answer doesn't have to be a tweak to the CMD. If there's a PuTTY-like program out there that will work between me and the command line I'm happy with that - I just want a proper window to work in
96 Answers
It's a bit tricky, but you can make the cmd fullscreen:
Launch the CMD and write the following code:
mode 800Now you can make it fullscreen by pull the menubar to the top of the screen or resize it, to whatever size you want.
If you want, that this is set by default, do the following:
Open an editor and write in the code
@Echo Off mode 800Now change the filename to
.cmdor.batPut it in the autostart.
To put it in the autostart for all users, do the following:- Go to the registry by entering
regedit.exein the windows-searchfield. Go to the following path:
HKEY_LOCAL_MACHINE\Software\Microsoft\Command ProcessorOptional: If you want to do it just for the actual user, go to the following path:
HKEY_CURRENT_USER\Software\Microsoft\Command ProcessorNow add a key from type REG-SZ with the name
Autorunand put the path of the script in the data-section of the key.Now you have to change the value of the value. Rightclick on the key and choose
edit.Now set the value to the path, where your script is:
- Go to the registry by entering
Everytime you now launch your machine, your cmd will be able to go fullscreen.
4Open CMD
Right click on titlebar and choose "properties"
In "layout" tab, in "screen buffer size" change from 80 to a number that will fit your screen width. E.g., in my notebook a CMD window is the half of my computer screen in width, so I choose 160.
Maximize window and see if appears an horizontal scroll bar at bottom or if there are more space on the right. If so repeat step 3 using other widths (for me 158 functioned).
In layout tab, copy values from "screen buffer size" to "windows size". Height will be locked to the maximum allowed (in mine case, 61) and it is done.
Trick: if you want, for some reason, maintain original size of CMD window, create a link (or a lot of links) for CMD with different size. E.g., in my desktop there are two shortcuts for CMD. One is a shortut for "CMD" named "CMD - original". The other is a shortcut for "CMD /k cd \" named "CMD - big", with those sizes for fullscreen (158x61).
Screenshot:
On most computers, Alt + Enter should let you enter or exit full screen. Note that this will hide your taskbar too.
7Open cmd.exe Right click on the title bar click properties click layout adjust to your liking.
1No, the Windows architecture simply doesn't understand what "flowing text" means, in the console.
It would need to provide support for pseudo-TTY, but it doesn't:
1You can create a shortcut with the following content:
PowerShell -WindowStyle Hidden -Command "Start-Process cmd -WindowStyle Maximized"