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=BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBDo 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.EXEThen 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: W12918Filename: Get More Environment Space.txt