Change batch cmd size (pixels)

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
Rileyh
Posts: 147
Joined: 01 Sep 2011 03:54
Location: Perth, Western Australia

Change batch cmd size (pixels)

#1 Post by Rileyh » 01 Nov 2011 20:46

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

Ed Dyreen
Expert
Posts: 1569
Joined: 16 May 2011 08:21
Location: Flanders(Belgium)
Contact:

Re: Change batch cmd size (pixels)

#2 Post by Ed Dyreen » 01 Nov 2011 21:24

'

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

matt12582
Posts: 5
Joined: 02 Nov 2011 11:58

Re: Change batch cmd size (pixels)

#3 Post by matt12582 » 03 Nov 2011 00:29

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

Post Reply