Print from command line

  • Thread starter Thread starter Bill
  • Start date Start date
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.
 
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
 
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
 
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:
 
Back
Top