Announcement

Collapse
No announcement yet.

DOS Print Capture Question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • DOS Print Capture Question

    I have this third party DOS app that I needed to update.
    With no source code, I used PowerBasic to write a TSR that
    pops-up as needed and adds functions.

    Now I need to add one more function. I need to STOP the DOS app
    from Printing and at the same time, let it print.

    That is, I need a way that my TSR (PBDOS app) can grab the main DOS
    app from printing. IF the main DOS app senses that there is no
    printer, it will send an error.

    A good solution would be to let the main DOS app print to a file.
    That function in not in the main DOS app.

    Is there a way to use PBDos to redirect DOS printing from LPT1 to a file.

    Any other solutions I would love to hear about.

    Again the main DOS app need to THINK that it is printing to LPT1 or
    MODE can be used if the printer is set to COMx, so I think that the DOS app
    uses DOS services where a MODE command can redirect the printer.
    That is, the main DOS app does NOT check to see if a real printer is there.



    ------------------
    Thanks for reading my jabbering.
    Miss Roma Vik
    Thanks for reading my jabbering.
    Miss Roma Vik

  • #2
    there is an option, an old exe called prn2file, which i no longer have.
    http://www.powerbasic.com/support/pb...read.php?t=285
    regards,

    ------------------
    ian[dot][email protected]
    :) IRC :)

    Comment


    • #3
      If you can't find PRN2FILE I have a copy.

      Send me a mail h a n s AT r i e t v e l d c o m p u t e r s DOT n l

      Hans Rietveld.

      ------------------
      sigpic
      Regards,
      Hans Rietveld.

      Comment


      • #4
        Hi,
        Visit http://groups.yahoo.com/group/JoeCav...grammingStuff.

        I've uploaded a copy of PRN2FILE as VOL6N22.ZIP.

        This also contains the Assembler source code, which you may want to incorporate into your PowerBASIC TSR.

        Joe


        ------------------

        Comment


        • #5
          Whoops!

          That link should be;
          http://groups.yahoo.com/group/JoeCav...ogrammingStuff

          Joe


          ------------------

          Comment

          Working...
          X