Set number of lines and columns of CmdPrompt from script?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
pstein
Posts: 125
Joined: 09 Nov 2011 01:42

Set number of lines and columns of CmdPrompt from script?

#1 Post by pstein » 29 Nov 2011 22:46

Can I somehow set the numer of lines and columns from within a batch script (in Win7).

As far as I know there is (was) a command similar to "mode" or "con".
Does this command only exist under WinXP? How is the syntax?

Maybe there is an additional third party progrma for this.

Peter

Rileyh
Posts: 147
Joined: 01 Sep 2011 03:54
Location: Perth, Western Australia

Re: Set number of lines and columns of CmdPrompt from script

#2 Post by Rileyh » 29 Nov 2011 23:58

I know of no other command to mode, but I will provide the syntax for it:

Code: Select all

mode con cols=(however many columns you want)

and:

Code: Select all

mode con cols=(however many columns you want) lines=(however many lines you want)

This will activate immediately.

Regards,
Rileyh

Post Reply