WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Environment

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Get More Environment Space

Keywords:	 env environment space dummy autoexec

Question:

I have a big DOS program that runs ok on W95 until I run it from a WBT script. Then when it loads there are a couple of messages "Out of environment space". I used to get this message anytime I ran the program (from the desktop, that is) until I tuned the memory on the PIF file. I wouldn't care about the message, except that after a few iterations of the script, the DOS program aborts. Is there any way to cure this?

Answer:

A little more tuning may be in order.

I would go into your autoexec.bat and add a few lines like...

SET DUMMY1=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
SET DUMMY2=BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
Do about 5 or 10 of those with longs strings of letters.

Then write a DOS BAT file to launch your DOS program. At the top of the DOS BAT file clear out the env variables. It might look something like...

SET DUMMY1=
SET DUMMY2=
SET DUMMY3=
MYDOSPROG.EXE
Then change your WinBatch script to call the DOS BAT file. Be sure to also tune the shortcut to the DOS BAT file. The SET statements should free up a little environment space for the program.
Article ID:   W12918
Filename:   Get More Environment Space.txt
File Created: 1999:04:15:16:50:32
Last Updated: 1999:04:15:16:50:32