Printing a file with print codes in it

Kenneth Brody kenbrody at bestweb.net
Wed Nov 29 16:47:02 PST 2006


Quoting Bob Rasmussen (Wed, 29 Nov 2006 16:00:55 -0800 (PST)):

> On Wed, 29 Nov 2006, Kenneth Brody wrote:
>
> > How do you print the file once it's on the other system?
> >
> > I do this all the time, by dropping to a command prompt and typing
> >
> >     copy /b filename printername
> >
> > For example:
> >
> >     copy /h c:\temp\printfile.txt lpt1
>
> First, an obvious typo: that "/h" should be "/b".

Correct.  Or, as they say:

   s:/h:/b:

> Second, "lpt1" is the name of the port, not the name of the printer as
> it's defined to Windows. This WILL work, for a parallel-connected
> printer.
> I don't believe it will for a USB-connected printer. I'm not sure about
> a network-connected printer.

If the printer has a UNC name, you can use:

    copy /b filename \\server\printer

Whatever name Windows knows the printer's port (as opposed to the
name of the printer itself), you should be able to use there.

Unfortunately, I'm not certain how to access the "port" for things
like USB printers from the command line.  One of our printers is
on port "USB002", but directing output to "usb002" or "usb002:"
results in a file named "usb002" being created, and "\dev\usb002"
fails.  (Such syntax used to be valid on DOS and Win9x.)  There's
probably something buried in the MS docs that tells how to do this.

[...]

--
KenBrody at BestWeb dot net        spamtrap: <g8ymh8uf001 at sneakemail.com>
http://www.hvcomputer.com
http://www.fileProPlus.com


More information about the Filepro-list mailing list