Page 1 of 1

Change batch cmd size (pixels)

Posted: 01 Nov 2011 20:46
by Rileyh
Hi,
I know that there is a default size that cmd has in pixels), but is it possible to change the size from a batch file or command line?
In taking a guess, I think it would be something like this:

Code: Select all

set "%size%=(randomnumberthatyouchoose)

Am I right? Or is there another way that works?
Regards,
Rileyh

Re: Change batch cmd size (pixels)

Posted: 01 Nov 2011 21:24
by Ed Dyreen
'

Code: Select all

@echo off
mode con cols=100 lines=50
mode /?
pause
exit /b 0
Warning, fixed height removes scrollbars !

If you wan't some more power over windows there is an external tool called CMDOW.EXE
You can download it from my account :arrow:
http://www.mediafire.com/?6isdpi4gk5kb6

Re: Change batch cmd size (pixels)

Posted: 03 Nov 2011 00:29
by matt12582
don't know if it would apply for what you're trying to do, but I learned a few years back an easy way of applying attributes like
size, position, color etc, was just to launch a batch from a shortcut, just change them in the layout tab you can also launch additional CMD windows from within a batch just using the START command

START C:\batchfile.bat.lnk

shortcuts by default will have a .lnk extension