Path: utzoo!utgpu!water!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!apple!bionet!agate!ucbvax!decwrl!purdue!i.cc.purdue.edu!j.cc.purdue.edu!pur-ee!iuvax!bsu-cs!ibmbin From: W8SDZ@SIMTEL20.ARMY.MIL (Keith Petersen) Newsgroups: comp.binaries.ibm.pc Subject: concopy, duplicates output into a file v1.0 Summary: concopy.arc, duplicates output into a file v1.0 Message-ID: <4464@bsu-cs.UUCP> Date: 24 Oct 88 05:00:46 GMT Sender: ibmbin@bsu-cs.UUCP Followup-To: comp.binaries.ibm.pc.d Lines: 153 Approved: dhesi@bsu-cs.UUCP Copy to a file all standard output to screen. Snarfed from local BBS. David Kirschbaum Toad Hall kirsch@braggvax.ARPA [ This program is by Chris Dunford, a well-known author of free software, who also wrote the highly-rated CED utility. Invoke the program, which gives you a new COMMAND.COM. Run any programs you wish. When done, type EXIT to exit this copy of COMMAND.COM. Everything sent to standard output while this COMMAND.COM was active has now been duplicated to a file. This is version 1.0. Concopy duplicates only what a program writes to its standard output via standard MS-DOS system calls, so it does not save anything written directly via the ROM-BIOS routines. It should successfully save output from programs that require the use of ANSI.SYS. (To save output from programs that write via the ROM-BIOS, try the once-shareware FANSI- CONSOLE device driver, which can save output in memory and later transfer it to disk.) (Aside: I don't know the internal workings of Concopy, but let's speculate. Perhaps it opens the log file for write, invokes COMMAND.COM, and when COMMAND.COM exits, it closes the log file and exits itself. The only slightly tricky thing it needs to do is to trap all calls to MS-DOS function 0x40 (write to file or device), and if the handle specified in register bx is 1, change "current PSP" back to its own PSP using well-documented-but-not-by-Microsoft system calls, duplicate that write request to its own already-open handle for the log file, and restore the "current PSP". Programmers looking for an exercise, try the above and see if it works. If it does, please send source for posting here, since Concopy does not seem to come with any.) Uudecode this article manually or feed to the "combine" script. checksum size (bytes) file 1331 6526 this uuencoded posting 61779 4714 concopy.arc -- R.D. ] BEGIN--cut here--cut here begin 644 concopy.arc M&@A#3TY#3U!9+D1/0P!>;`X``/00?;^/T#P9```,#10D&)@`Q)`G3@Y"R0(B MA@L8,`(2+-@"$H.`$@\F?+(01)HY(,*`F).F#1PV94#`D?/FC)PP;4#001.& M#H@Q;^"D*0.2SIN0(,A\7`/"3!J4(=WD"5HSC,29-3V"G%/&C4V?((@\F7(" MI,8Y;Y"2*6,GS9@R+$#<06,6C500;M[(:1. NE,\M(G#-&3IFJ+D"`2&+S MX\B21\/(\>CFYALW9^%<_>E7J-\Q=-*X.:.2I4N8(-[4H0-G]-.?(H7.(6H4 M9=HR>")?I6D318P4'FWBM*JY#D^9/^_()5J'-QL0>41+K$HF=]HP;IJCD($[ M>9V;T$=FMCORKTPT*
!-537:R$(XID*;F"`G`ELYM,2`UQ`H"T:\B3)DV"
M."'BPF<3`$:G0"DRI(>!CPI9?(2DH,&8-VZNPLD#(H8+`:*!CR9JN<-&?0
MT`&!8DB*KCEPX``AANL0-&?GT"F+IHP<$$I<@"!2QXV9-W+(O*#2%P19.V5`
M3'ECALZ=,'(B'Y'SI@X