Question

How to print from Dos to USB printer

Asked by: jbar

I have an epson 740 USB-printer. I need to print from a Dos program to this printer. But I cannot connect in the properties a LPT-port to the USB-printer (like in a W95-networked environment).
How can I do this???? Any suggestion ??

I need the solution also for some friends. We use W95, W98 and W2000. Each suggestion is welcome, also if it applies only to 1 platform.

Please don't suggest to connect the printer to the regular LPT-port. The only LPT1 port is used for another printer and for this specific program I need the USB printer.

This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.

Subscribe now for full access to Experts Exchange and get

Instant Access to this Solution

  • Plus...
  • 30 Day FREE access, no risk, no obligation
  • Collaborate with the world's top tech experts
  • Unlimited access to our exclusive solution database
  • Never be left without tech help again

Subscribe Now

Asked On
2000-05-21 at 09:40:38ID10353915
Tags

usb

,

dos

,

print

,

printer

Topic

Printers

Participating Experts
8
Points
200
Comments
20

Trusted by hundreds of thousands everyday for fast, accurate and reliable tech support.

  • "The time we save is the biggest benefit of Experts Exchange to Warner Bros. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange." Mike Kapnisakis, Warner Bros.
  • "Our team likes having a resource that is more secure than just using Google and most experts using this service really know their stuff. It's nice to look here first versus using Google." Dayna Sellner, Lockheed Martin
  • "Anytime that I've been stumped with a problem, 9 out of 10 times Experts Exchange has either the accepted solution or an open discussion of the potential solution to the problem." Kenny Red, eBay Inc.

See what Experts Exchange can do for you.

Got a question?

We've got the answer.

Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.

Screenshot of Experts Exchange Knowledgebase

Need individual assistance?

Our experts are ready to help.

If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.

Screenshot of Experts Exchange Knowledgebase

Want to learn from the best?

Read articles from industry experts.

Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.

Screenshot of an Article

Working on a long term project?

Store your work and research.

Save solutions to your questions, answers you’ve discovered through searching plus helpful articles in your personal knowledgebase for easy future access.

Screenshot of Experts Exchange Knowledgebase

Access the answers to your technology questions today.

Subscribe Now

30-day free trial. Register in 60 seconds.

What Makes Experts Exchange Unique?

Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Trusted by the world's most respected brands.

image of each brand's logo

Faithfully serving IT professionals since 1996.

Experts Exchange Logo

Try it out and discover for yourself.

Subscribe Now

30-day free trial. Register in 60 seconds.

Related Solutions

  1. LPT
    I'm trying to install an epson printer on a 200 pentium, 64 mem, IBM PC. It wouldn't install. It said the info wasn't on the installation CD. And add & remove hardware didn't help. I went into device manager, and removed the printer in the port. It said it was on LPT 1, b...
  2. Cannot access LPT1
    Hi, I am having printer port problems. I can print in DOS (dir >lpt1) but windows produces the error "Unable to access port" when trying to get any communication at all with the parallel port. I have checked to make sure there are no conflicts (IRQ etc) I have a...
  3. LPT1:
    I have a P3 running win98se I have not used my printer recently and now I find that it will not work.After trying to use it I sometimes get a message saying can not connect with lpt1 some other application may be useing it. Nothing else is useing it. My printer is an HP 710C ...
  4. USB to LPT?
    hi =) would be someone kind and try to help me - i've to use a DOS application in win xp home and my printer has got only usb port. my application need lpt (because it is a DOS app). how can i print on this way without using a printing to file? thanx a lot! linuxak
  5. USB 2 LPT
    Hello. I have a software done in fpd26 that prints to LPT port. The problem is that i have a printer that uses USB. Is there a software that capture printer ports so that the application "print" to LPT but it realy prints to USB? NTony.

Free Tech Articles

  1. WARNING: 5 Reasons why you should NEVER fix a computer for free.
    It is in our nature to love the puzzle. We are obsessed. The lot of us. We love puzzles. We love the challenge. We thrive on finding the answer. We hate disarray. It bothers us deep in our soul. W...
  2. SCCM OSD Basic troubleshooting
    SCCM 2007 OSD is a fantastic way to deploy operating systems, however, like most things SCCM issues can sometimes be difficult to resolve due to the sheer volume of logs to sift through and the dispe...
  3. Migrate Small Business Server 2003 to Exchange 2010 and Windows 2008 R2
    This guide is intended to provide step by step instructions on how to migrate from Small Business Server 2003 to Windows 2008 R2 with Exchange 2010. For this migration to work you will need the fo...
  4. Create a Win7 Gadget
    This article shows you how to create a simple "Gadget" -- a sort of mini-application supported by Windows 7 and Vista. Gadgets can be dropped anywhere on the desktop to provide instant information, ...
  5. Outlook continually prompting for username and password
    There have been a lot of questions recently regarding Outlook prompting for a username and password whilst using Exchange 2007. There are a few reasons why this would happen and I will try to cover t...
  6. Backup Exchange 2010 Information Store using Windows Backup
    There seems to be quite a lot of confusion around the ability to backup Exchange 2010 using the built in Windows Backup feature. This stems from the omission of this feature prior to Exchange 2007 s...

Cloud Class Webinars

  1. Avoiding Bugs in Microsoft Access
    Alison Balter takes and in-depth look at avoiding bugs in Access. In this webinar you will learn about using the immediate window to debug your applications, invoking the debugger, using breakpoints to troubleshoot, stepping through code, setting the next statement to execute, ...
  2. Top 10 Best New Features in Visio 2010
    Scott Helmers gives live demonstrations of the top 10 new features in Visio 2010. This webinar will teach you how to create compelling diagrams by adding shapes to the page with a single click, linking the shapes in a diagram to data in Excel (or SQL Server, or SharePoint), ...
  3. IT Consultant Business Secrets Revealed
    Michael Munger, Experts Exchange tech pro and IT consultant, pulls back the curtain on his very successful businesses and answers question on every IT consultant and business owner should know about. He shares secrets on what he did to solve the 5 most common problems in IT, ...
  4. Disaster Recovery and Business Continuity
    Quest CTO, Mike Billon, gives an overview of the steps involved in building a dunamic disaster recovery plan. Through case studies and an examination of software/hardware tooles for monitoring and testing, you'll gain a better understandin of where you are, where you want ...
  5. Organize Your Visio Diagrams with Containers and Lists
    Scott Helmers uses cross functional flowcharts, wireframe diagrams, data graphic legends and seating charts to teach you: how to ustilize all three new structured diagram components in Visio 2010, the best practices for organizeing shapes in previous version of Visio, how to organize ...
  6. How to Us Objects, Properties, Events and Methods in Microsoft Access
    Alison Dalter gives an in-depbth look at objects, properties, events and methods in Microsoft Access. In this webinar you will learn about using the object browser, referring to objects, working with properties and methods, working with object variables, understanding the ...

Join the Community

Give a Little. Get a Lot.

Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.

Join the Community

Answers

 

by: vikiingPosted on 2000-05-22 at 05:15:13ID: 2832998

A possible solution: try to use a printer spooler (under DOS) in order to intercept output from program and store it into a file.

Then, once back to Windoze, dump the generated file to the printer.

 

by: jbarPosted on 2000-05-22 at 11:46:55ID: 2834627

Thanks for your option. Some users will have a difficulty with thsi solution, because they are not experienced in dos-file handling.
I still hope there is a more general solution.

 

by: vikiingPosted on 2000-05-22 at 13:28:05ID: 2835015

There's a problem, Jbar: there no drivers for USB devices thought to be executed from DOS applications.

With that fact in front of view, you don't have many choices.


Anyway, check with http://216.46.244.60/ to see if they can do anything for you.

 

by: jbarPosted on 2000-05-23 at 01:50:00ID: 2836152

Thanks again. I hoped there would be a solution like in using a network printer: assign locally a LPT-port and connect it to the USB-path.

As far as I can find out in many places on the web, a lot of people are struggeling with thsi issue. So I hope Uncle Bill / M$ will give us all a real solution.

 

by: vikiingPosted on 2000-05-23 at 03:54:51ID: 2836524

>>The only LPT1 port is used for another printer and for this specific
>>program I need the USB printer.

¿What about installing a second parallel port? An add-on card with LPT2 costs no more than 10 bux...

 

by: jbarPosted on 2000-05-23 at 04:35:23ID: 2836635

If it where for me alone... no problem. I did it already. The problem is I am the source of information for the Dutch Habo-community (Habo is an old Dos-based accounting program) with thousands of users, gradually going over to USB-printers. So I like to have an easy solution or a solution directly supported by Windows.

So, in general, your suggestion is really not a valid solution.
This is the reason why I previously said a lot of users don't have the expertise to use printing to a file (although Habo does support that) and afterwards using a Win-tool to print the dos-file.

PS
Personally I have several printers installed, LPT1, LPT2, USB, RS232 connected to the same pc and all in a network.

 

by: vikiingPosted on 2000-05-23 at 05:19:29ID: 2836772

Well... I don't know why you awarded me the points then. Unfortunately, I don't have a way to refund... :(

But thanks a lot, anyway.


 

by: jbarPosted on 2000-05-23 at 06:06:28ID: 2836949

Sorry, since I am new on this forum, I wanted to award only the last remark. Not for the whole.
If I get another change, I will surely update.

 

by: jbarPosted on 2000-05-23 at 06:10:38ID: 2836970

So this didn't work. Sorry vikiing, I really appreciate You helped in knowing for sure there is currently no other solution then those you suggested to me.
For me this knowledge is worth the total 200. But I dodn't get a chanche to correct myself.

 

by: vikiingPosted on 2000-05-23 at 11:51:53ID: 2838743

>>I wanted to award only the last remark

You can't award only one comment, but the whole thread (although only the comment you've chosen is that which remains as "answer").

I hope you be lucky with your USB printer !!!

 

by: jbarPosted on 2000-05-23 at 13:19:23ID: 2839128

Again, sorry. I learned one more thing already, besides of USB-printing: The reward is indead for the whole tread. Next time I will know and take the correct route. But once it is the first time, and those are the hardest.

Thanks for your good wish.

 

by: JohnMalonPosted on 2003-02-06 at 12:04:30ID: 7896330

Print to a USB printer via LPT.

Yes, I've done this on a Windows 2000 Professional PC.  I think it would work on other versions too.

From what I remember, you want to install the printer to the USB port, i.e. USB001.

Then you have to share the printer.  Our printer is shared as HPLJ2000D.

Then use the following commands:

NET USE LPT1 \\COMP_NAME\HPLJ200D /Persistent:YES  (This should all be on the same line.  It basically redirects output on LPT1 to the shared printer HPLJ2000D.)  

NET VIEW \\COMP_NAME  (To see the connection.)

Of course you need to replace COMP_NAME with the name of your computer.

You can delete the connection by using:
NET USE LPT1 /DELETE

I hope this helps!

John

 

by: Paolo_DzanettiPosted on 2003-06-26 at 01:46:59ID: 8804065


We have same problem. Last week we recently purchased a HP Deskjet 3420 USB (instead of old Epson LX-300) and, obviously, it does not run in DOS.

One guy sent me a very similar syntax:
>   Do something like this:
> NET USE LPT1: \\SERVER\PRINTERSHARE /persistent:YES

But when I  this trick, I get some text and stange symbols on the first page and hundreds pages with nothing on them.

Our DOS program (CardioLine) print cardiograms in graphics mode, could this be a problem?

Any suggestions, please ?

 

by: Paolo_DzanettiPosted on 2003-07-01 at 06:01:34ID: 8833710


My problem was solved successful today.

I learned of a shareware program that are hooked DOS printing to different kinds of printers. This little program is not a 100% solution, nor is it terribly elegant. But it does work. Even more importantly, in less than seven hours I had a personal e-mail reply to question that I had posed directly to the vendor's support. See it at
http://www.dosprn.com/

BTW, the forum that I have been watching from is:
http://forums.techguy.org/index.php

 

by: dsitechPosted on 2003-09-04 at 21:55:50ID: 9293505

I just discovered something interesting:

I have been struggling with new USB printers and a requirement to do a "dir > lpt1" which would prove DOS program printing.

I am "sharing with self" on Win2K so that I can do a "net use lpt1 \\computer\printer /Persistent:YES" as documented earlier on this thread.

Still no luck ...   THEN:  (drum roll) ....

(R) click on printer, go to Properties, go to advanced, go to Print processor, change data type = "RAW" to "TEXT".

It works on an HP 3650   ($90 at RadShack)


From Roger, struggling with First Resort (a legacy DOS app) in Hawaii.

 

by: ptootillPosted on 2004-04-28 at 12:39:45ID: 10942897

Just to confirm that the NET USE LPT1: route works for me on an Epson CX5400 from an old DOS program called Office Manager - I use it to print invoices (quite important!) but they are only text.

This is Windows 2000 and the Print processor property is set to WInPrint &  RAW (the default, I haven't changed it).

Rgrds

Peter

 

by: bergm57Posted on 2004-07-14 at 12:04:08ID: 11552488

I am trying to use this procedure to direct lpt1 to usb on a standalone XP Pro workstation and it keeps coming back with an error:  The network location cannot be reached
Any help?

 

by: ptootillPosted on 2004-07-15 at 14:37:30ID: 11563625

I haven't done this on XP but on Win2k to check the status, open a cmd window and type 'net use'. You should see something like this:

N:\temp>net use
New connections will be remembered.

Status       Local     Remote                    Network
-------------------------------------------------------------------------------
OK           Y:        \\bob\prt                 Microsoft Windows Network
OK           LPT1      \\avellana\EPSONcx        Microsoft Windows Network
The command completed successfully.


Here I am redirecting LPT1 to the printer called EPSONcx on avellana. If you don't have ssomething similar, maybe the printer is not shared properly (or maybe XP is different?). Otherwise, USB cards are cheap...

Rgrds

Peter

 

by: shanekelly_7Posted on 2004-08-27 at 08:10:40ID: 11914028

copy <fle name and path> LTP1

 

by: RieskeKRPosted on 2004-10-25 at 19:31:09ID: 12406968

The NET USE redirect command can be made to stay permanent until canceled or to terminate when the DOS program is closed. The is done with the \PERSISTENT:YES  or  \PERSISTENT:NO part of the command.

A good way to launch the DOS program is with a DOS batch file. Place the NET USE command on the first line of the batch file. Use the \PERSISTENT:NO to discontinue the redirect when the DOS program is closed.

Make a shortcut to the DOS batch file and place it on the desktop.

The NET USE command can also be used to redirect the LPT1 port to a printer on the network. This works well for DOS program that can only print to the LPT1 port.

Add the following as the first line to the batch file:

NET  USE  LPT1:  \\MYSERVER\PRINTER  /PERSISTENT:NO

Where: MYSERVER is changed to the name of your server and
Where: PRINTER is changed to the name of your printer.

Kent

20120131-EE-VQP-002

3 Ways to Join

30-Day Free Trial

The Experts

98% positive feedback on 31,087 answers since March 2000. angeliii is a Microsoft Most Valuable Professional for his work with MS SQL Server & Develoment.

He has also proven his knowledge of Visual Basic Programming, PHP Scripting and Oracle Databases.

The Experts

97% positive feedback on 10,752 answers since July 2000. lrmoore has more than 18 years experience in the networking industry.

The six-time Mircosoft MVPs specialties include firewalls, virtual private networking, and network management.

Testimonials

"...and excellent source for support... Kind of like having your very own IT dept." Electriciansnet

Testimonials

"I was apprehensive at signing up at first. However... it has already made my life as an IT administrator much easier." JaCrews

Testimonials

"WOW! You guys have great, active, and knowledgeable people on here." moore50

Business Clients

Business Clients

In the Press

"If you’ve got a question... Experts Exchange can supply an answer.”

In the Press

"...an invaluable aid for both IT professionals and those who require tech support."

In the Press

"where IT professionals provide quick answers on just about any topic"

Business Account Plans

Loading Advertisement...