darrellm@pogo.GPID.TEK.COM (Darrell McGinnis) (10/05/88)
Question #1: Is there any way to detect the amount of environment space available (from a program C/assembly) ? example: a program generates a batch file with the statement file.bat: set FOO=BAR ^Z How can the program tell if the 'set foo=bar' will run out of environment space when the bat file is executed ? (aside from running the bat file; which is too late!) It seems strait forward to tell how much is used, (asciiz strings followed by an additional zero) but determining how much space is left escapes me. Question #2: Is there a simple way for PC/XT/AT machines to be rebooted(CNTL-ALT-DEL) from a program ? Any hints will be appreciated! Thanks, Darrell -------- Darrell McGinnis ...tektronix!pogo!darrellm Tektronix, Inc., P.O. Box 1000, MS 63-356 darrellm@pogo.TEK.COM Wilsonville, OR 97070 (503) 685-3285 --------