Solved

DIRECTING DOS SOFTWARE LPT1 OUTPUT TO A USB PRINTER

Posted on 2007-11-30
7
1,116 Views
Last Modified: 2013-12-01
I have a DOS enviornment software which directs print output to the LPT1 port. I want it to print to a USB printer.(Laser/Inkjet). The DOS program sourcecode is written in FOTRAN and compiled to an EXE File. Both the EXE File and Source code in a .FOR file are available with me. The Fotran compiler is not available with me. I would appreciate HELP.
0
Comment
Question by:Rajinder_Kumar_Mody
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
7 Comments
 
LVL 12

Expert Comment

by:weareit
ID: 20387314
How about using the Loopback Adapter:

http://geekswithblogs.net/dtotzke/articles/26204.aspx

-saige-
0
 
LVL 92

Accepted Solution

by:
nobus earned 125 total points
ID: 20387467
can this help ?
http://www.dosprn.com/                                    DOS print to USB
http://www.winnetmag.com/Article/ArticleID/39674/39674.html                  usb print from Cmd      
0
 

Assisted Solution

by:reinsmms
reinsmms earned 125 total points
ID: 20387479
Typically what I do is create a shared printer (or use an existing print queue on a print server) and then MAP the LPT port using the NET USE command.  For instance, from a command prompt:
NET USE LPT1 \\servername\queuename
This connection will be persistant by default,  However windows is never perfect when it comes to maintaining mapped printers, so as a precaution I then use a batch file or login to map the drive on logon just to be sure.
PS - it's OK to have multiple printers pointing to the same port using mapping,  However, if it does cause conflicts, DOS or system level programs typically provide a way to change the destination port (LPT2, or the like)
Hope that helps
0
Turn your laptop into a mobile console!

The CV211 Laptop USB Console Adapter provides a direct Laptop-to-Computer connection for fast and easy remote desktop access with no software to install.

 
LVL 38

Expert Comment

by:hdhondt
ID: 20393898
reinsmms's suggestion works fine if the printer supports PCL (or some other language the DOS program supports).

Unfortunately, most of the current inkjets, as well as many of the low-cost lasers are GDI printers, which rely on Windows to convert the page into pixels. These printers do not support any language, and for those only something like DOSPRN suggested by nobus will work. DOSPRN takes the output from the DOS program, converts it into a page, and feeds that to the Windows diriver to get it printed.
0
 
LVL 31

Expert Comment

by:rid
ID: 20396721
I don't see windows version mentioned in the Q, but to print directly to LPT1, wouldn't it have to be like 9X or earlier, before the HAL made such things very tricky? It *might* just be easier to find a printer with a parallel interface...
/RID
0
 
LVL 1

Expert Comment

by:Computer101
ID: 20650832
Forced accept.

Computer101
EE Admin
0

Featured Post

Simple, centralized multimedia control

Watch and learn to see how ATEN provided an easy and effective way for three jointly-owned pubs to control the 60 televisions located across their three venues utilizing the ATEN Control System, Modular Matrix Switch and HDBaseT extenders.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I. Introduction There's an interesting discussion going on now in an Experts Exchange Group — Attachments with no extension (http://www.experts-exchange.com/discussions/210281/Attachments-with-no-extension.html). This reminded me of questions tha…
No matter the version of Windows you are using, you may have some problems with Windows Search running too slow or possibly not running at all. Before jumping into how you can solve this issue, just know there are many other viable alternative deskt…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
Suggested Courses

617 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question