[comp.sys.ibm.pc] Reopening stdout

cjdb@sphinx.UUCP (02/12/87)

Ray Duncan, on p. 262 of Advanced MS-DOS, relates how command.com
opens and closes the standard output handles. Does anyone know exactly
how? (I can see how stdout can be closed with a DOS call, using the
preassigned handle, but it is not so clear how it would be opened,
since opening doesn't use handles.)

Also, when I want to simulate > NUL from within an application (right
before using EXEC to load another program, to prevent that program
from writing its introductory greetings to the screen), I use int 21h
function 44h (IOCTL) and set BX to 1 (stdout) and bit 2 to 1 (= NUL
device).  This seems to work fine, but can anyone suggest a different
or better way?

Thanks.
-- 
Charles Blair   			    ..!ihnp4!gargoyle!sphinx!cjdb
The University of Chicago		          PMRCJDB@UCHIMVS1.Bitnet