Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!cbatt!ihnp4!gargoyle.uchicago.edu!sphinx!cjdb From: cjdb@sphinx.UUCP Newsgroups: comp.sys.ibm.pc Subject: Reopening stdout Message-ID: <1131@sphinx.UChicago.UUCP> Date: Thu, 12-Feb-87 10:12:52 EST Article-I.D.: sphinx.1131 Posted: Thu Feb 12 10:12:52 1987 Date-Received: Fri, 13-Feb-87 20:38:40 EST Organization: University of Chicago Library Computer Systems Lines: 19 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