Alex Blekhman wrote:
> Hello,
>
> I'm regular to work with console window that is 100 cols x 40 lines.
> Console buffer is taller: 100 x 300. So, I have vertical scroll bar on
> console window. Now, when I run 'runas' command, then new console is
> open with default size, i.e.: 80x25.
>
> I can use 'mode con' command, but it influences only buffer size while
> window size try to occupy as mach screen as possible.
>
> Is there any possibility to set console window size and buffer size
> separately? Alternatively, can I cause 'runas' command to propagate
> current console settings to new process?
>
Hallo Alex,
consetbuffer from Frank P.Westlake will do that.
Get it here:
http://gearbox.maem.umr.edu/fwu/
----------------------------------------------------------------------
C:\>consetbuffer /?
Version 1.0, Copyright (C)2000, 2001 Frank P. Westlake
Sets the dimensions of the console buffer in columns and lines.
ConSetBuffer [/X|C|W=columns] [/Y|L|H=lines]
/X Specify the number of columns for the buffer width.
/C and /W are the same as /X.
/Y Specify the number of lines for the buffer height.
/L and /H are the same as /Y.
If either dimension is smaller than the applicable window dimension, the window
will be adjusted.
If neither argument is present, the current settings will be printed. The
dimensions will be taken from the standard error device (STDERR) so that the
correct values will be read when used with the FOR command. Nothing is written
to STDERR so to ensure that the correct values are obtained, do not redirect
STDERR. To save the dimensions in a batch program, use the following:
FOR /F "tokens=2,4 delims== " %%A in ('ConSetBuffer') Do (
Set Columns=%%A
Set Lines=%%B
)
----------------------------------------------------------------------
HTH
--
Gruesse Greetings Saludos Saluti Salutations
Matthias :-)
---------+---------+---------+---------+---------+---------+---------+