Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site noscvax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!allegra!bellcore!decvax!ittvax!dcdwest!sdcsvax!noscvax!dukelow From: dukelow@noscvax.UUCP (Robert A. Dukelow) Newsgroups: net.micro.pc Subject: Need help with printer I/O redirection Message-ID: <883@noscvax.UUCP> Date: Thu, 11-Apr-85 19:22:56 EST Article-I.D.: noscvax.883 Posted: Thu Apr 11 19:22:56 1985 Date-Received: Sun, 14-Apr-85 02:12:01 EST Organization: Naval Ocean Systems Center, San Diego Lines: 18 I'm looking for help with a problem. I have a commercial program (i.e. don't have sources) which outputs to the printer. Does anyone have any suggestions as to how I might be able to redirect the output to a file? I am running DOS 2.0 on an IBM-PC/XT. The obvious solution is to write a shell which traps the DOS calls and run the program under that. Problem is that covers a lot of unfamiliar ground for me. Maybe there are simpler solutions? I know you can redirect standard input and output but don't see any indication in the DOS manuals that this can be done for the printer. If nobody has any direct solutions, then how about some pointers as to how to execute arbitrary programs from TURBO Pascal. I would especially appreciate any code that can be used as an example, but any suggestions would also help. I'm not anxious to reinvent the wheel and I suspect there are some pitfalls along the way. Thanks in advance, Bob Dukelow (dukelow@nosc)