COPY /B a.dat LPT1: to USB - How?

A

Aloke Prasad

I have a LaserJet 1300 USB printer on USB001 port.

I would like to dump a file (printed
to FILE on a different computer) to this printer.

How do I redirect LPT1: so that the COPY /B command can pipe the file to the
USB port?

What other way is there to send a file to the printer?
 
B

Bob Headrick

Aloke Prasad said:
I have a LaserJet 1300 USB printer on USB001 port.

I would like to dump a file (printed
to FILE on a different computer) to this printer.

How do I redirect LPT1: so that the COPY /B command can pipe the file to the
USB port?

What other way is there to send a file to the printer?

If you are running Windows then the Printfile may work for you. See:
http://www.lerup.com/printfile/

Regards,
Bob Headrick, not speaking for my employer HP
Microsoft MVP
 
A

Alan

Aloke Prasad said:
I have a LaserJet 1300 USB printer on USB001 port.

I would like to dump a file (printed
to FILE on a different computer) to this printer.

How do I redirect LPT1: so that the COPY /B command can pipe the file to the
USB port?

What other way is there to send a file to the printer?

One way is PrintFile, <http://www.lerup.com/printfile/>, a useful free
utility.

Ther may be other ways, see
<http://www.jmu.edu/computing/helpdesk/selfhelp/captureprinterport.shtml>,
though I'm not sure if this works for USB; I think you have to have
the printer set up as a network printer.
 
M

Me

Aloke Prasad said the following on 9/04/2004 8:18 AM:
I have a LaserJet 1300 USB printer on USB001 port.

I would like to dump a file (printed
to FILE on a different computer) to this printer.

How do I redirect LPT1: so that the COPY /B command can pipe the file to the
USB port?

What other way is there to send a file to the printer?

I don't have a USB printer so I can't say if you can assign the
port. If it turns out that you can't perhaps try the following as an
alternative:

Create a for the printer (ie. LJ1300)

net use lpt1: \\localhost\lj1300
 
A

Aloke Prasad

Quaoar said:
Check the printer properties, ports tab. The USB port designation is
listed there, which might help.

That shows the port as USB001

COPY command to that completes in the DOS box but does not send any data to
the printer (no output or blinking lights on it).

COPY command to USB001: produces an error (no such device).

Printfile looks promising. Thanks to those who suggested it.
 
D

Dave

That shows the port as USB001

COPY command to that completes in the DOS box but does not send any data to
the printer (no output or blinking lights on it).

without the ":" at the end, you just copied to a file called "USB001". It
will be on your hard drive in which ever directory was the current one
when you did the copy command.
COPY command to USB001: produces an error (no such device).

Yeah, DOS is funny like that. You can't just copy a file to any arbitrary
device. Some you can said:
Printfile looks promising. Thanks to those who suggested it.

I've seen that work and other times, on other systems, it's failed. At
least it's another option to try. You might want to check all the driver
options to see if there's any kind of option/setting relating to "MS-DOS
compatability" or "Do you want to print from MS-DOS programs?"

Dave
 
A

Andrew Rossmann

[This followup was posted to comp.periphs.printers and a copy was sent to
the cited author.]

aprasad123 said:
I have a LaserJet 1300 USB printer on USB001 port.

I would like to dump a file (printed
to FILE on a different computer) to this printer.

How do I redirect LPT1: so that the COPY /B command can pipe the file to the
USB port?

What other way is there to send a file to the printer?

In addition to the PrintFile program others posted, you can share the
printer and then connect to your own share. This is useful if you prefer
working at a command line or through batch files.

Basically, share the printer from Start/Settings/Printers, then create a
virtual port with:
NET USE LPTx \\yourcomputer\printershare (where x is the port number you
want to use.)
 
A

Aloke Prasad

In addition to the PrintFile program others posted, you can share the
printer and then connect to your own share. This is useful if you prefer
working at a command line or through batch files.

Basically, share the printer from Start/Settings/Printers, then create a
virtual port with:
NET USE LPTx \\yourcomputer\printershare (where x is the port number you
want to use.)

Neat idea!
 
A

Andrew Rossmann

aprasad123 said:
Neat idea!

Just a note that for Win 9x/ME, you need to enable File and Printer
sharing in Network settings. For NT/2K/XP, you need to make certain the
Server service is running (NET START SERVER.)
 

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