Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!ames!acornrc!bob From: bob@acornrc.UUCP (Bob Weissman) Newsgroups: comp.sys.ibm.pc Subject: Re: Another twist on DOS environment sizes. Summary: Here's the environment size patch for MSDOS 3.30 Message-ID: <835@acornrc.UUCP> Date: 31 May 88 03:53:37 GMT References: <629@fxgrp.UUCP> <4598@dasys1.UUCP> Organization: Acorn Research Center, Palo Alto, CA Lines: 29 This is a patch to increase the default environment size for the version of COMMAND.COM which comes with MSDOS 3.30. Load a copy of COMMAND.COM into DEBUG, and say "U0EA3". You'll see several lines of code. The interesting one is at location 0EB4 -- it's MOV WORD PTR[1650],000A The 000A is the number of paragraphs COMMAND.COM allocates for the environment by default. You may increase the environment size from 160 bytes to, say, 384 bytes, by typing "A0EB4" and then entering MOV WORD PTR[1650],0018 and then saying "W" to write the file back out. Do take the usual precaution of running DEBUG on a copy, or at least backing up COMMAND.COM before running DEBUG. Disclaimer: I assume no responsibility for trashed command interpreters; I found this patch by searching with DEBUG, not by any inside knowledge. MSDOS 3.30 is the only version of DOS I have available; this instruction, or its equivalent, is doubtless in a different place in other versions. -- Bob Weissman Internet: bob@acornrc.uucp UUCP: ...!{ ames | decwrl | oliveb | pyramid }!acornrc!bob Arpanet: bob%acornrc.uucp@ames.arc.nasa.gov