Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > General Computer Discussion > General Computer Support > Printing from DOS applications (lpt1) to USB attached printer in Vista

Reply
Thread Tools

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

 
 
MarkSatterfield MarkSatterfield is offline
Member
Join Date: Jan 2008
Location: Central Florida
Posts: 87
 
      10-07-2008
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
 
Reply With Quote
 
 
 
 
MarkSatterfield MarkSatterfield is offline
Member
Join Date: Jan 2008
Location: Central Florida
Posts: 87
 
      10-09-2008
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 by MarkSatterfield; 10-09-2008 at 02:19 AM..
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows XP freezes when USB mouse/keyboard are attached but not when a serial set is attached John Dalberg Computer Support 4 06-17-2007 09:27 AM
Outsmarting DOS C compiler to print to USB printer -- use DOS interrupt? tomhr C Programming 27 01-12-2006 04:09 PM
Printing from DOS app under Win98 to USB printer - HOW? glenn Computer Support 3 11-19-2005 06:07 AM
Shared Printer attached to networked computer not printing from networked computers Ned H. Windows 64bit 7 08-05-2005 02:12 PM
OT: Printing from DOS to USB Printer Darth 2000 MCSE 4 02-15-2004 02:16 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57