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
Solved

DIRECTING DOS SOFTWARE LPT1 OUTPUT TO A USB PRINTER

Posted on 2007-11-30
7
1,113 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
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
PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

 
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

A while back when OPSMGR 2012 was released we were very excited about getting it into our environment and upgrading our 2007 implementation,  we started our planning and we then proceeded with our implementation. All went as planned & our system …
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
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…

789 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