[comp.sys.ibm.pc] What is /E on command.com

schimke@puff.cs.wisc.edu (Timothy Schimke) (03/29/88)

>is documented, for instance.  I think the price is less than $90.
>Kenneth Herron

Forgive me if this has been brought up before, but what is the /E
parameter to command.com.  In addition, are there any other undocumented
options out there?   Thanx in advance.  (post or mail)

-- Tim

michaelb@csd4.milw.wisc.edu (Michael L Bloxham) (03/29/88)

In article <1515@puff.cs.wisc.edu> schimke@puff.WISC.EDU (Timothy Schimke) writes:
>>is documented, for instance.  I think the price is less than $90.
>>Kenneth Herron
>
>Forgive me if this has been brought up before, but what is the /E
>parameter to command.com.  In addition, are there any other undocumented
>options out there?   Thanx in advance.  (post or mail)
>
>-- Tim




The /E after the command.com sets up the amount of space you are
allocating to your environment. I believe that this is avilable
to DOS 3.2,3.3. The /E switch must be in multiples of 16 between
160 and 32768. This means you can give your environment up to 32K
of memory.
   The SHELL command in a config.sys will also do this with the same switch.
Like thus:
		   SHELL=COMMAND.COM[/P]/E:nnnn

where nnnn is the intended size for your environment in bytes. The /P
is to run the autoexec.bat. The nnnn still must be within the afore mentioned
constrictions.

hope this is of some use.

mike
-----------------------------------------------------------------------
internet: michaelb@csd4.milw.wisc.edu
BITNET: michaelb%csd4.milw.wisc.edu@wiscmac3.bitnet
{seismo|nike|ucbvax|harvard|rutgers!ihnp4}!uwvax!uwmcsd1!uwmcsd4!michaelb

agollum@engr.uky.edu (David Herron aka Admiral Gollum) (03/29/88)

In episode <1515@puff.cs.wisc.edu>, we
heard schimke@puff.WISC.EDU (Timothy Schimke) say:
>>is documented, for instance.  I think the price is less than $90.
>parameter to command.com.  In addition, are there any other undocumented
>options out there?   Thanx in advance.  (post or mail)

(I knew that would get somebody :-)
The /E parameter to COMMAND.COM allows you to set the size of the
environment space.  In 3.2 /E:xxx sets the environment space to xxx bytes,
up to 32k.  In 3.1 xxx is in paragraphs and can be up to 94 (I think).
The actual MS-DOS manuals document this switch, but some OEMs who
lisense the OS and produce their own documents leave it out.

The correction:  I have been informed by a Microsoft rep that, while
Microsoft does package a generic version of MS-DOS (ie, disks and manuals
all in one box), they do not sell this package through retail channels.
Microsoft sells this package only to OEMs who don't wish to create their
own customized version of the package but who *do* want to sell MS-DOS
with their computers.  Some of these generic packages do end up available
for direct sale (which is not what Microsoft wants).

Kenneth Herron

murillo@sigi.Colorado.EDU (Rodrigo Murillo) (03/30/88)

Here is the easiest way to expand the DOS environment.  The first
line in your autoexec.bat should be:

     shell=command.com /P /E:1024

This tells DOS to make command.com the 'new' shell, to allocate 1k bytes
for envar space (/E:1024) and to make the shell permanent (/P).  This
only works in 3.2 and 3.3 (maybe 3.0 and 3.1, I forget)

-- 
_______________________________________________________________________________
 Rodrigo Murillo, University of Colorado - Boulder  (303) 761-0410 
 murillo@boulder.colorado.edu | ..{ncar|nbires}!boulder!murillo
 ( Machines have less problems.  I'd like to be a machine. -- Andy Warhol )

rgsmeb@abcom.ATT.COM (Michel Behna) (03/30/88)

From article <1515@puff.cs.wisc.edu>, by schimke@puff.cs.wisc.edu (Timothy Schimke):
> Forgive me if this has been brought up before, but what is the /E
> parameter to command.com.  In addition, are there any other undocumented
> options out there?   Thanx in advance.  (post or mail)
> 
> -- Tim

If I can remember correctly from when I used to MSDOS the /E parameter allows
you to specify how big is your environment space. This is good if you have a 
lot of environment variables but bad if you have a large program because it uses
some of the 640K available for users.

Michel Behna

cramer@optilink.UUCP (Clayton Cramer) (03/30/88)

> >is documented, for instance.  I think the price is less than $90.
> >Kenneth Herron
> 
> Forgive me if this has been brought up before, but what is the /E
> parameter to command.com.  In addition, are there any other undocumented
> options out there?   Thanx in advance.  (post or mail)
> 
> -- Tim

/E isn't undocumented on DOS 3.3 -- it allows you to set the number of
paragraphs of environment space available when starting COMMAND.COM.

Clayton E. Cramer