Xref: utzoo alt.msdos.programmer:1263 comp.sys.ibm.pc.programmer:10 Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!zaphod.mps.ohio-state.edu!mips!bridge2!jarthur!rspangle From: rspangle@jarthur.Claremont.EDU (Randy Spangler) Newsgroups: alt.msdos.programmer,comp.sys.ibm.pc.programmer Subject: Re: DOS 3.3+ environment space Message-ID: <4439@jarthur.Claremont.EDU> Date: 16 Feb 90 22:23:42 GMT References: <1990Feb16.202111.5163@sun.soe.clarkson.edu> Followup-To: alt.msdos.programmer Organization: Harvey Mudd College, Claremont, CA 91711 Lines: 34 In article <1990Feb16.202111.5163@sun.soe.clarkson.edu> jk0@image.soe.clarkson.edu (Jason Coughlin) writes: >In DOS 3.2, one could specify DOS's environment space in the config.sys >file with a line something like (I don't remember the exact syntax): > >SHELL=c:\command.com /e:512 > > >Does anyone know how to increase the environment space for DOS 3.3+? > Actually, it's pretty simple for DOS 3.3. Debug command.com, then display :0EB8 - this should be 0Ah. This is where COMMAND.COM stores the size of the environment table. Change it to whatever you want, and write the changes back to disk again. This has the nice advantage of taking no additional space or anything. However, it will only work for DOS 3.3. The way I got this address was by debugging command.com with the command line argument to increase environment space: debug command.com /e:256 And then tracing along until command.com parsed the command line. About the time it finishes reading the argument, it converts it from ASCII to hex and then writes it to :0EB8, overwriting the 0Ah default. Then I quit debug, restarted it, and changed the value. Works fine on my computer. The same process should work for 4.0 and above. -- -------------------------------------------------------------------------- | Randy Spangler | The less things change, the | | rspangle@jarthur.claremont.edu | more they remain the same | --------------------------------------------------------------------------