There is a way to check the environment size without the use of special programs like ENVIRON.EXE and QENV.BAT. It is not simple because we cannot display the environment size by using a command.
The SET command shows all the current settings in the environment of COMMAND.COM. The environment size defaults to approximately 150 bytes.
SET a=12345678901234567890 SET b=12345678901234567890 SET c=12345678901234567890 : : = : : : : = : : : : = : :
SET > MYENV.TXT
DIR MYENV.TXT
This is necessary because each line in the file is terminated by CrLF (0D0A) characters and the environment strings are terminated by a single character (hex 0) only.
If you can use this method and calculate a size at 200, you did very, very well.
Figure "C Source Code for ENVIRON.EXE"