joel@Rochester.ARPA@sri-unix.UUCP (10/09/83)
From: Joel Seiferas <joel@Rochester.ARPA> The old, unimproved version of CI C86 included satisfactory I/O redirection before PC-DOS 2.0 ever arrived. Under the new DOS, however, redirection specifications get intercepted before they reach a C86 program. A stop-gap solution is easy: In the provided source for _main, change the redirection characters from < and > to { and } everywhere. These will get by DOS, and you will be able to choose whose redirection you want. It sure is nice to have source provided! Batch (.BAT) files CAN be nested in PC-DOS 2.0. The secret is "Invoking a Secondary Command Processor", page 10-9 of the manual. An example is shown below. ("ECHOBYTS" is a simple but handy program which echos to standard output the ASCII characters specified by the decimal integers on its command line.) STDHEAD.BAT echobyts >prn: 15 27 81 137 27 87 1 echobyts 13 |date >prn: echobyts 13 |time >prn: dir %1 >prn: echobyts >prn: 13 10 27 87 0 exit STDPRINT.BAT echobyts >prn: 27 78 5 type >prn: %1 echobyts >prn: 140 exit STDBOTH.BAT command/c stdhead %1 command/c stdprint %1 exit Joel Seiferas University of Rochester