Print from command line

B

Bill

I am running XP Pro and I was wondering if anyone can tell me how to print
to a usb printer from the command line. I know i can for example type in
from the command line "systeminfo > lpt1" to print to a printer connected to
the traditional printer port, but how can I do the same thing with usb? I've
tried "systeminfo > usb001" to try this, it appears to go through fine but
nothing prints. My printer is an HP Deskjet 3520. Any help is appreciated.
 
B

Bob I

Share the printer. Remember the printer share name.

Now go to the command prompt and issue

NET USE LPT1 \\nameofthiscomputer\sharenameofprinter

Send your output to LPT1
 
P

Pegasus \(MVP\)

Bill said:
I am running XP Pro and I was wondering if anyone can tell me how to print
to a usb printer from the command line. I know i can for example type in
from the command line "systeminfo > lpt1" to print to a printer connected to
the traditional printer port, but how can I do the same thing with usb? I've
tried "systeminfo > usb001" to try this, it appears to go through fine but
nothing prints. My printer is an HP Deskjet 3520. Any help is appreciated.

You can print any text file on your default printer with this
command line:

notepad /p c:\systeminfo.txt
 
B

Bob I

That's interesting Pegasus!

Last week I set up a similar "bat" file up for a user

dir *.* /on > c:\filelist.txt
notepad /p c:\filelist.txt


so she could drop it into any folder and print a listing.


Pegasus (MVP) wrote:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top