Article View: comp.os.msdos.programmer
Article #6309redir LPTx to separate files on disk
From: Jin Tonic Li
Date: Tue, 17 Nov 1992 02:16
Date: Tue, 17 Nov 1992 02:16
24 lines
1386 bytes
1386 bytes
I am thinking about writing a TSR program to redirect output from LPTx to disk and store them into *separate* files, instead of appending them into one big file. I have a good idea on how to use int28 to do background work and int17 to capture LPTx. However, I don't know how to detect the start and end of a printed document when there are multiple ones being sent to LPTx and possibly being sent from different programs. For example, if a user prints Doc1 to LPT1 from WordPerfect and then prints Doc2 to LPT1 from MS Word, when I capture LPT1, how do I know if Doc1 is being printed(so that I can redirect it to a file called temp1 on disk) and if Doc2 is being printed(then I can call it temp2)??? Is this possible? or am I forced to write some kind of a device driver to capture the output? Thanks in advance, -- Jin Li >> Gin & Tonic mix well University of Toronto Computing Services << jinli@gpu.utcs.utoronto.ca uunet!utgpu!jinli>> No bugs, no bucks
Technical Details
Message-ID:
<Bxu908.JDx@gpu.utcs.utoronto.ca>Path:
arc1-ca.pugleaf.net!sparky!uunet!utcsri!utgpu!jinliShow Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer Path: arc1-ca.pugleaf.net!sparky!uunet!utcsri!utgpu!jinli From: jinli@gpu.utcs.utoronto.ca (Jin Tonic Li) Subject: redir LPTx to separate files on disk Message-ID: <Bxu908.JDx@gpu.utcs.utoronto.ca> Organization: University of Toronto Computing Services Distribution: na Date: Tue, 17 Nov 1992 02:16:56 GMT Lines: 24