Printing from DOS applications (lpt1) to USB attached printer in Vista

Discussion in 'General Computer Support' started by MarkSatterfield, Oct 7, 2008.

  1. MarkSatterfield

    MarkSatterfield

    Joined:
    Jan 26, 2008
    Messages:
    77
    Location:
    Central Florida
    qbasic application will not print to USB attached printer under Vista, but CMD window will print to USB attached printer



    Using Windows XP:

    1) Share the USB attached printer

    2) net use lpt1: \\computer\printer

    3) Print successful



    Using Vista

    1) Share the USB attached printer

    2) net use lpt1: \\computer\printer from a CMD prompt that is running as Administrator

    3a) Print from DOS window successful (for example, dir > lpt1: works properly and spools to the printer)

    3b) Print from qbasic application not successful (cannot find printer)



    Any ideas? It appears that the net use lpt1 under Vista is not comprehensive.



    --Mark



    http://www.marksatterfield.com
     
    MarkSatterfield, Oct 7, 2008
    #1
    1. Advertising

  2. MarkSatterfield

    MarkSatterfield

    Joined:
    Jan 26, 2008
    Messages:
    77
    Location:
    Central Florida
    So it seems I solved this with a lot of help from google! Here's the scoop.

    Synopsis: How to print from a program that has hard coded LPT1 destination

    Works on: This technique has been tested with Microsoft Windows XP & Microsoft Windows Vista

    Technique: To print from a program that points to LPT1 when there is no LPT1 available on your system, do the following:

    Set up standard printer
    1) Install printer (for example, USB printer)

    Pool the printer with LPT1:
    2) Open Printer properties (in Vista, open as Administrator)
    3) Turn on "printer pooling" (under Ports tab)
    4) In addition to whatever is already selected (for example, USB), also select "LPT1:"
    5) Click apply

    You are done!

    Depending on the destination printer (specifically, the driver), it might be necessary to ADD FF
    1) Open Printer Properties (remember to use Administrator in Vista!)
    2) Click Advanced tab
    3) Click Print Processor...
    4) Select "RAW [FF appended]"
    5) Click OK from "Print Processor" window
    6) Click OK on "Properties" window

    You are done!

    Why this works: This technique works by a trick of the light, or at least a trick of the READY wire. Specifically, Windows is trying to print to either the LPT1 printer or the USB printer, whichever is available. It just so happens that the LPT1 printer is not able to accept print requests. Therefore Windows pools only to the USB printer.

    Special thanks to Bruce Sanderson for writing up the hint on http://members.shaw.ca/bsanders/printfromdos.htm

    --Mark

    http://www.marksatterfield.com
     
    Last edited: Oct 9, 2008
    MarkSatterfield, Oct 9, 2008
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Bitman

    Redirect LPT1 to COM4 for Bluetooth printing

    Bitman, Jun 26, 2004, in forum: Wireless Networking
    Replies:
    3
    Views:
    12,992
    Patrick Sears [MSFT]
    Jul 22, 2004
  2. =?Utf-8?B?QW5keSBTaWVnZWw=?=

    Mapping the LPT1 Port to a network printer

    =?Utf-8?B?QW5keSBTaWVnZWw=?=, Nov 22, 2005, in forum: Wireless Networking
    Replies:
    4
    Views:
    21,019
    Ryan Younger
    Nov 24, 2005
  3. John

    List Directories (like dir>lpt1 in dos)

    John, May 22, 2005, in forum: Computer Support
    Replies:
    9
    Views:
    1,036
    Dave Lear
    May 23, 2005
  4. Alan Meyer
    Replies:
    0
    Views:
    508
    Alan Meyer
    Apr 20, 2007
  5. John Dalberg
    Replies:
    4
    Views:
    1,377
    Kraftee
    Jun 17, 2007
Loading...

Share This Page