@ECHO OFF REM ENVUSE.BAT - check amount of environment in use IF '%1'=='$$$' GOTO Report REM The temporary file *MUST* have the same file name REM as this batch file, but a different extension SET > ENVUSE.$$$ DIR ENVUSE.$$$ | FIND "ENVUSE $$$" > TEMPENVU.BAT TEMPENVU :==== Report ==== ECHO Bytes of environment in use: %2 plus 1 minus TYPE ENVUSE.$$$ | FIND /C "=" DEL ENVUSE.$$$ DEL TEMPENVU.BAT