OS/2, eCS & ArcaOS - Technical > Programming

Increasing MDOS Environment limit

(1/2) > >>

Doug Clark:
I believe the maximum for all environment variables in DOS, and hence Win-OS/2, is 160 characters.

Is there some setting that I am missing to increase this limit in DOS and Win-OS/2 sessions?

Dave Yeo:
Isn't that simply a DOS limit? You could use a different version of DOS perhaps.

Doug Clark:
Dave,

There is the /E:x  switch you can use with COMAND.COM for increasing the environment size upto 32768 when running the DOS command processor - and the lowest value you can set with /E:x is 160 - which is the DOS default.  I was just hoping there was some setting in the DOS properties that I was missing that would act like /E:x does for COMMAND.COM.  Plus it appears that COMMAND.COM only works for DOS sessions - my concern is for Win-OS/2 sessions.

The limit for PATH in DOS is 80 characters.  The default AUTOEXEC.BAT for AOS 5.1 has a path that is 75 characters. So there is no way to add an application to the PATH without taking something out of the default PATH - like for example C:\SYS\MDOS\BIN\

And when the PATH is at 80 characters that leaves just 80 characters for everything else in the environment.  So, for example, if you have a number of drives, unREMarking the SET DELDIR=  line will throw you over the 160 character limit.

I was just hoping I was missing something here, or there was some magic setting I was unaware of.

Thanks

Lars:
For whatever DOS program you use, try to change the DOS_SHELL setting for it to include the /E:32768 switch.
No clue if that will work but you can give it a try.

Dave Yeo:
Perhaps as simple as adding the /E:32768 to the parameters in the DOS Session Properties?

Navigation

[0] Message Index

[#] Next page

Go to full version