yogi@humus.Huji.AC.IL (Yossi Gil) (02/09/89)
Another intresting parameter of command.com is the tty port, so saying SHELL=c:\bin\command.com /E:1024 /P nul will do the following: 1) Execute command.com in Permanent mode. 2) Alloctae 1024 bytes for environment. (assuming dos 3.3) 3) Use the NUL device as the initial i/o device. You can replace the 'nul' with the a name of any character device such as: con, prn, clock$, but the most useful ones are: aux (or com1), com2, and nul. I use the nul device mostly because it allows me to do a 'ctty con' in the end of autoexec, thus preventing a Ctrl-Break while executing it. This can also solve the 'echo off' echoing in pre dos 3.3 systems. This feature is not documented in most versions of DOS, but I learned about it from a Dos Manual (which?? where?? version??). Surprisingly enough it had worked on all versions of command.com I have access to.