Path: utzoo!attcan!uunet!lll-winken!ames!elroy!spl1!ddsw1!andyross From: andyross@ddsw1.MCS.COM ([andrew rossmann]) Newsgroups: comp.sys.ibm.pc Subject: environment sizes Message-ID: <[1081.1]andyross@ddsw1.comp.ibmpc;1> Date: 7 Jan 89 23:00:05 GMT References: <34216@bbn.COM> Lines: 31 Use SHELL=C:\COMMAND.COM /E:xxxx /P where xxxx is the size of the environment you want in PARAGRAPHS (1 paragraph = 16 bytes.) In DOS 3.2 and newer, xxxx is the size of the environment you want in bytes. It will be rounded up to the nearest 16 byte boundary. It can be up to 32768 bytes, and as small as 128 (the default.) The /P tells COMMAND.COM that it is 'Permanent' and you can't EXIT out from it. If you have COMMAND.COM in another subdirectory, use this (if it is in a directory called DOS:) SHELL=C:\DOS\COMMAND.COM C:\DOS /E:512 /P The full syntax for COMMAND is: COMMAND [pathname] [device:] [/E:size] [/P] [/D] [/F] [/C string] where: pathname tells which subdirectory command is actually in (this is used to set the COMSPEC environment variable.) device: lets you specify a different device (such as AUX) for I/O. /E:size is the size of the environment in paragraphs (DOS 3.1) or bytes (DOS 3.2 or newer) The range is 128 bytes (8 paragraphs) to 32768 bytes (2048 paragraphs). /P tells COMMAND not to exit to a higher level and to execute AUTOEXEC.BAT /D tells COMMAND not to execute AUTOEXEC.BAT if /P is also specified (undocumented) /F tells COMMAND to ignore the 'Abort, Retry...] message (undocumented) /C string is a command for COMMAND to run. It must be the last command. This is all from my Tandy MS-DOS 3.2 manual. andyross@ddsw1.MCS.COM