1.

Solve : Set Size of Command Prompt Window - Batch File?

Answer»

Are there parameters (like color) that I can use to set the size of the command prompt window (Windows XP) that shows when a batch file is running?
I want the messages that I echo to the user to sit centered in the command prompt window and the BEST way to do that is make sure that every time the batch file runs the window opens to a specific size.

Thanks for the help,

PoSo you MEAN like this?

Paste the following code in notepad and save it as a batch file. (copy whole code)

Code: [Select]@echo off
echo normal mode
pause
cls
mode 20,30
echo mode 20,30
pause
cls
mode 30,20
echo mode 30,20
pause
cls
mode 44,10
echo mode 44,10
pause
cls
mode 80,15
echo mode 80,15
pause

Basically to change the cmd window, the command is MODE ##,##You COULD also get CMDOW, a Command Line Utility which ALLOWS you to resize the window of command prompt (or any window, for that matter) to the pixel.

It also has a LOT of other helpful tools, such as min/maximising windows and move the position of a window (which is something you could utilize also) so I would definitely take a look into it.



Discussion

No Comment Found