?
Solved

How to print from the command line to USB printer?

Posted on 2004-08-03
7
Medium Priority
?
2,199 Views
Last Modified: 2008-02-01
I run win xp and i want to print files from the command line to my USB printer.
I wrote this int the CMD:
print /d:USB001 C:\111.txt
but then i get the message:
unable to initialize device USB001
Is that possible?
0
Comment
Question by:omer_667721
[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
  • 4
  • 3
7 Comments
 
LVL 32

Accepted Solution

by:
LucF earned 200 total points
ID: 11704909
Hi omer_667721,

Share the printer on the network, then use the following command:

Net use lpt1: \\localhost\<printersharename> /PERSISTENT:YES

Now you can print from dos using the normal lpt1: port :)

Greetings,

LucF
0
 

Author Comment

by:omer_667721
ID: 11705563
Is it possible to print also files like HTML or DOC in that way?
0
 
LVL 32

Expert Comment

by:LucF
ID: 11705590
Never tried it, but I can't see why not...
0
Optimum High-Definition Video Viewing and Control

The ATEN VM0404HA 4x4 4K HDMI Matrix Switch supports 4K resolutions of UHD (3840 x 2160) and DCI (4096 x 2160) with refresh rates of 30 Hz (4:4:4) and 60 Hz (4:2:0). It is ideal for applications where the routing of 4K digital signals is required.

 

Author Comment

by:omer_667721
ID: 11705841
I just tried to print a DOC file and i got gibrish...
when i tried to print HTML file i fot only the source code of the HTML
0
 
LVL 32

Expert Comment

by:LucF
ID: 11705875
For the html, that's normal, and for the DOC, if it's not plain text, it's also to be expected.
0
 

Author Comment

by:omer_667721
ID: 11706214
OK
thanks
0
 
LVL 32

Expert Comment

by:LucF
ID: 11706249
You're welcome :)

LucF
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This seems to be a very common error related to the Samsung printer driver. First, this is the error we're talking about: Log: System Type: Error Event: 7000 Agent Time: 3:37:24 am 22-Apr-09 Event Time: 6:07:24 pm 21-Apr-09 UTC Source: Se…
This article shows how to get a list of available printers for display in a drop-down list, and then to use the selected printer to print an Access report or a Word document filled with Access data, using different syntax as needed for working with …
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

777 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