General discussion

Locked

Win2K Program too big to fit in memory

By tech ·
I'm calling a bat file from within a bit of code written in a dos based database program. When called from within the code the error message "Program too big to fit in memory" is generated. I can see only part of the command line of the bat file on the screen - like it cannot complete the command. The bat file then fails to function.

However, if I "shell to DOS" (the same process the call to the bat file does) and run the bat file it excutes perfectlly.

I've modified config.nt to read:
dos=high, umb
device=%SystemRoot%\system32\himem.sys
EMM = A=20 RAM
FILES=50
buffers=50

Is there a way to determine that I am using this config.nt file? These changes have not solved the problem.

Any other clues?

Thanks,

JOHN

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Win2K Program too big to fit in memory

by BillyGilbreath In reply to Win2K Program too big to ...

John, if shelling to the command prompt works, then you indeed do not have enough memory to run both the database program and the batch functions in the same "DOS" environment. Give your batch file a new, clean copy of the environment by adding:COMMAND /C

to the beginning of the command line calling your batch file. This loads a new copy of CONFIG.NT for the duration of the batch file, then automatically closes the copy of the "DOS" environment when the batch file is complete.

The syntax will be something like:

COMMAND /C batchfil.bat

The /C calls a TEMPORARY copy of the CONFIG.NT.

Collapse -

Win2K Program too big to fit in memory

by tech In reply to Win2K Program too big to ...

Thanks for the response. I've tried your suggestion but so far have not been sucessful. I still get the same error message.

Collapse -

Win2K Program too big to fit in memory

by tech In reply to Win2K Program too big to ...

This question was closed by the author

Back to Windows Forum
3 total posts (Page 1 of 1)  

Operating Systems Forums