How to make the windows command prompt wider

It can be annoying when you’re using the default Command Prompt window settings and not being able to read everything easily. What you may not know is you can make it wider, and here is how.

Command Prompt

The Command Prompt in Windows is a feature that provides the ability to enter in MS-DOS and other commands to perform tasks in the OS. By default though, it’s not always wide enough for viewing the data you want in an easy to read format.

In this example we’re running the tracert command in prompt. With the default settings we cannot see all of the information in an easy to read format. The data wraps so it can be somewhat difficult to review.

How to make the windows command prompt wider

Change Command Prompt Width

Right-click on the prompt boarder and select Properties…

How to make the windows command prompt wider

Now select the Layout tab and change the Window Size width, by default it is 80. Here you can change the Screen Buffer Size Width and Window Position. When you’re finished click OK.

How to make the windows command prompt wider

Now the window is wider and when we run the same command above, we can see all of the data in a much easier to read format!

How to make the windows command prompt wider

If you find yourself using the command prompt and were frustrated about not being able to see everything easily, this quick tweak helps out a lot. If you want to find out more ways of tweaking the Command Prompt, check out our article on how to personalize it.

This will work with in XP, Vista, and Windows 7

I want to resize the command prompt window in a batch file, is it possible to set a height and width through something I can just add in the batch file?

How to make the windows command prompt wider

9 Answers 9

Modify cmd.exe properties using the command prompt Pretty much has what you’re asking for. More on the topic, mode con: cols=160 lines=78 should achieve what you want. Change 160 and 78 to your values.

The unit is the number of characters that fit in the command prompt, eg.

will make the command prompt 80 ASCII chars of width and 100 of height

That is the smallest size possible.

is the largest possible, although it probably won’t even fit your screen. If you want to minimize it, type

and of course, to maximaze,

I am currently working on doing this from the same batch files so that you don’t have to have two or start it with cmd. of course, there are shortcuts, but I’m gonna try to figure it out.

How to make the windows command prompt wider

Most people will tell you to run this command:

but you should just try typing:

as a line in your batch file or cmd prompt.

You can use /start /max [your batch] it will fill the screen with the program it oppose to /min

How to make the windows command prompt wider

If you want to run a .bat file in full screen, right click on the “example.bat” and click create shortcut, then right click on the shortcut and click properties, then click layout, in layout you can adjust your file to the screen manually, however you can only run it this way if you use the shortcut. You can also change font size by clicking font instead of layout, select lucida and adjust the font size then click apply

I know, that’s a 8 years old question, but that can still happen today.

Powershell ca be used for that. An example is shown here. The shortest command for the cmd is:

Set your wanted window size to the width and hight vars. However, this short line has two limitations:

  • Be sure that the window size is not larger than the predefined buffer sizes. Otherwise there occur an error message.
  • Depending on the system, loading and processing of Powershell takes 2. 4 seconds. Sometimes this is a long time to wait.

To avoid that, in the command below the buffer size is defined. In addition, the process runs parallel to the other following cmd commands:

The width and height values to the buffersize object, here 177 and 999, must be bigger or equal to the window size values.

Although the answers given here can be used to temporarily change window size, they don’t seem to affect font size (at least not on my PC). I have an alternative way. I don’t know if this what you’re looking for but if you want to make changes automatically/permanently to Console font/window size, you can always do a script that edits the registry:

Those keys deal with the consoles that come up when your run a script or press shift and select “open command prompt here”. The Command Prompt entry in your start menu does not use the registry to store it’s preferences but stores the prefs in the shortcut itself.