home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / msdos / programm / 10677 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  1.4 KB

  1. Xref: sparky comp.os.msdos.programmer:10677 alt.msdos.programmer:2750
  2. Newsgroups: comp.os.msdos.programmer,alt.msdos.programmer
  3. Path: sparky!uunet!utcsri!utgpu!jinli
  4. From: jinli@gpu.utcs.utoronto.ca (Jin Tonic Li)
  5. Subject: redir LPTx to separate files on disk
  6. Message-ID: <Bxu908.JDx@gpu.utcs.utoronto.ca>
  7. Organization: University of Toronto Computing Services
  8. Distribution: na
  9. Date: Tue, 17 Nov 1992 02:16:56 GMT
  10. Lines: 24
  11.  
  12.  
  13. I am thinking about writing a TSR program to redirect output from LPTx
  14. to disk and store them into *separate* files, instead of appending them
  15. into one big file.
  16.  
  17. I have a good idea on how to use int28 to do background work and int17 to
  18. capture LPTx.  However, I don't know how to detect the start and end of
  19. a printed document when there are multiple ones being sent to LPTx and
  20. possibly being sent from different programs.
  21.  
  22. For example, if a user prints Doc1 to LPT1 from WordPerfect and then prints
  23. Doc2 to LPT1 from MS Word, when I capture LPT1, how do I know if Doc1 is
  24. being printed(so that I can redirect it to a file called temp1 on disk)
  25. and if Doc2 is being printed(then I can call it temp2)???  
  26.  
  27. Is this possible? or am I forced to write some kind of a device driver to
  28. capture the output?
  29.  
  30. Thanks in advance,
  31.  
  32. -- 
  33.               Jin Li              >>    Gin & Tonic mix well
  34.    University of Toronto Computing Services  <<
  35. jinli@gpu.utcs.utoronto.ca   uunet!utgpu!jinli>>      No bugs, no bucks
  36.