[comp.sys.ibm.pc] DOS 3.1 environment

cordero@silver.bacs.indiana.edu ( Manuel Cordero ) (01/16/89)

I was wondering if anybody out there new What I need to do to change 
the size of my DOS environment?  I have an IBM AT running DOS 3.1.

Thanks!

Manuel

wilson@uhccux.uhcc.hawaii.edu (Tom Wilson) (01/17/89)

In article <2986@silver.bacs.indiana.edu> cordero@silver.bacs.indiana.edu (  Manuel Cordero  ) writes:
>
>I was wondering if anybody out there new What I need to do to change 
>the size of my DOS environment?  I have an IBM AT running DOS 3.1.

DOS 3.1 doesn't have the /E switch available for resetting the size of
the environment space via the 'shell =' command in CONFIG.SYS (as you
have probably discovered.)  The only options I know are:    

1)  Get DOS 3.2 (of course, you have to install it on your hard disk,
which might require unloading everything if it doesn't fit)

2)  If you are using the true PC-DOS (*not* MS-DOS) 3.1, then track down
a copy of the SETENV utility included with MSC 5 or MSC Fortran.  This
patches COMMAND.COM to increase the size of the environment space.

    SETENV doesn't work with DOS other than PC-DOS, at least for the ones
that I have tried (Compaq, Leading Edge)

-- 
Tom Wilson
wilson@uhccux.UUCP
wilson@uhccux.uhcc.Hawaii.Edu (Internet)
wilson@uhccux (Bitnet)

bobmon@iuvax.cs.indiana.edu (RAMontante) (01/17/89)

>>I was wondering if anybody out there new What I need to do to change 
>>the size of my DOS environment?  I have an IBM AT running DOS 3.1.
>
>DOS 3.1 doesn't have the /E switch available for resetting the size of

Grunt.  MSDOS (maybe not PCDOS?) v3.1 supported the /E switch in a
slightly different manner than v3.2 and up, and it wasn't a documented
feature.  The line

	shell=c:\command.com  c:\  /e:20

in the CONFIG.SYS file should specify an environment of 20 "paragraphs",
or 320 bytes.  (For v3.2 the /e specifies bytes, not paragraphs.)

Note that this doesn't help if your problem is a too-long PATH string;
there's a limit of <127 bytes per string, regardless of the number of
strings in the environment.  This limit can be tricked, but it's a pain.
Microsoft's various attempts at an operating system are all pains.

jborza%burgundy@Sun.COM (Jim_Borza) (01/18/89)

In article <3016@uhccux.uhcc.hawaii.edu>, wilson@uhccux.uhcc.hawaii.edu (Tom Wilson) writes:
> 
> DOS 3.1 doesn't have the /E switch available for resetting the size of
> the environment space via the 'shell =' command in CONFIG.SYS (as you
> have probably discovered.)  The only options I know are:    
> [....] 
> -- 
> Tom Wilson
> wilson@uhccux.UUCP
> wilson@uhccux.uhcc.Hawaii.Edu (Internet)
> wilson@uhccux (Bitnet)

Au contraire!  DOS 3.1 did have the /E switch available.  PC-DOS and many
MS-DOS versions didn't document it, though.  The systax is not the same as
that in 3.2+.  The /E:nnn refers to the number of _paragraphs_ to alloc-
ate to the environment; thus, /E:32 will set up a 512 byte environment.
I suspect Microsoft anticipated the change and simply dropped the documen-
tation from 3.1.  It works in Compaq, IBM, and at least one 'generic' ver-
sion I've used.
Jim Borza
Disclaimer?  Sure, why not?