PDA

View Full Version : Autoexec.nt and DOS-> (W2K)



PeterSwinkels
04-09-2003, 09:18 AM
It seems Windows 2000 works with 50 lines for text in text mode. Whenever I start the command prompt or some other text mode program the letters are a bit small and the rows of text are close together. When working from the command prompt I can solve this by typing "mode con lines=25" but I don't like having to do this each time and is not possible with several text mode programs unless I start them from the command prompt.

Now as I understand you can use two files (autoexec.nt and config.nt) which are processed to configure the DOS environtment each time you run a DOS program.

So to solve the problem described above I added
the following line to the autoexec.nt:
"%SystemRoot%\system32\mode.com con lines=25"
This however didn't work, when I turned the echo on, I saw that this line caused "Bad Command or file name" error. Judging by the echo of the command that caused the error, the command was interpreted properly. This command also causes no trouble when executed from the command prompt.

What I would like to know is how to get text mode (or is that console based programs???) programs to work with 25 instead of 50 rows for text by default?

trancendenepoch
09-04-2003, 08:32 AM
I have also run into the same problem and tried the same solution with the same results. I need to find a solution for this as the user experiencing the problem is a little hard of sight.

BertImmenschuh
09-05-2003, 12:49 PM
I tried this in WinXP and Command Prompt window:
mode con lines=25
and it worked until I closed then reopened the window.

Good judgement comes from experience, and experience comes from bad judgement

Robert Kirby
09-05-2003, 01:33 PM
It has been a while, but.......

Try placing, "ANSI.SYS", in your config.nt. Your syntax is correct for the autoexec.nt.

DEVICE=drive:\path\ansi.sys /switches

BertImmenschuh
09-06-2003, 10:38 AM
ANSI.SYS is not needed in DOS/Win9x, mode con lines= can run from a bootable disk/floppy, just needs mode.com on it. Smallest number usable is 25, 50 is starting to get too small to read on a 15" monitor.

Good judgement comes from experience, and experience comes from bad judgement

motoflop
09-07-2003, 08:28 AM
Why don't you customize window properties? Just select system menu (upper right corner) and properties from open command prompt. You can set font and layout (how many lines etc). These settings are directly available under registry key "HKEY_CURRENT_USER\Console".