Need help for DOS

  • Thread starter Thread starter Klaus
  • Start date Start date
K

Klaus

WinXp prof. is installed. Now I am trying to run a DOS-
program. Therefore it needs the command files=40. it
seems to me there is no result. Even a value of 255 has
no effect.What can I do ?

Next problem is to get enough memory. the commands I use
are:
device=%SystemRoot%\system32\himem.sys noems
dos=high,umb
files=255

Same problem as above: no effect.

What`s wrong. Hope some one can help me.
..
 
Klaus said:
WinXp prof. is installed. Now I am trying to run a DOS-
program. Therefore it needs the command files=40. it
seems to me there is no result. Even a value of 255 has
no effect.What can I do ?

Next problem is to get enough memory. the commands I use
are:
device=%SystemRoot%\system32\himem.sys noems
dos=high,umb
files=255

Same problem as above: no effect.

What`s wrong. Hope some one can help me.
.

It is my understanding that when a "command prompt" is created (it's not
DOS remember), it uses the file %systemroot%\system32\config.nt and
%systemroot%\system32\autoexec.bat as the default dos environment
settings ... just like it did with DOS with config.sys and autoexec.bat.

I think you simply need to insert the above requirements for files into
config.nt

Maybe you are doing this to this file, but you don't mention it so I
thought I would mention it. I can't think how to test this on my
machine so I can't say for sure this will fix your problem. Give it a try.
 
Those files are read when an MS-Dos (or Win 3.1) program is started, not when the command prompt is started.
 
Your problem could be due to the fact that there is no DOS in XP. It is NT
based, not DOS based. There is a very basic DOS emulator in XP.
 
Klaus said:
WinXp prof. is installed. Now I am trying to run a DOS-
program. Therefore it needs the command files=40. it
seems to me there is no result. Even a value of 255 has
no effect.What can I do ?

XP ignores config.sys. Instead edit the file windows\system32zconfig.nt
(and autoexec.nt instead of autoexec.bat

There are only certain things you can do - no resident drivers or TSRs
may be loaded for example. Nor the parameters like noems for himem. But
you should find files=40 there already

For best DOS conventional memory, edit the windows\system32\config.nt
and autoexec.nt files as follows.

In config.nt have (apart from the large number of REM lines) just
EMM = B=4000 RAM
(note the exact spaces - either side of the first = and before RAM,
none next to the second =) and

dos=high, umb
device=%SystemRoot%\system32\himem.sys
files=40
(or higher files= if needed)

and in autoexec.nt have

REM Install DPMI support
lh %SystemRoot%\system32\dosx

with other earlier lh lines REM ed out, and then any SET or PATH lines
that may already be present at the end.

This should give about 612K for a program, run from a shortcut made to
its .exe file. R-click the shortcut, Properties and on the Memory page
you can set an explicit value - rather than Auto - for any EMM or XMS
memory it may need, and for initial environment space
 
Back
Top