Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17



Posted on 2007-11-30
Medium Priority
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.
Question by:Rajinder_Kumar_Mody
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
LVL 12

Expert Comment

ID: 20387314
How about using the Loopback Adapter:

LVL 93

Accepted Solution

nobus earned 500 total points
ID: 20387467
can this help ?                                    DOS print to USB                  usb print from Cmd      

Assisted Solution

reinsmms earned 500 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
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 39

Expert Comment

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.
LVL 31

Expert Comment

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...

Expert Comment

ID: 20650832
Forced accept.

EE Admin

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Like many organizations, your foray into cloud computing may have started with an ancillary or security service, like email spam and virus protection. For some, the first or second step into the cloud was moving email off-premise. For others, a clou…
Skype is a P2P (Peer to Peer) instant messaging and VOIP (Voice over IP) service – as well as a whole lot more.
In an interesting question ( 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…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
Suggested Courses

670 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