Ricardo M. Urbano - W2K/NT4 MVP said:
Michael, I think there is a fundamental gap in understanding how NTx
prints from the command prompt. You do not print to a printer name, but
to an LPT device. Typically, there are 3: LPT1, LPT2, and LPT3. LPT1
is almost always a physical I/O port in the machine that you would
attach a printer too. Actually, I have no idea how you would print to a
USB printer from the command prompt, now that I think about it.
Anyway, all 3 LPT ports can be "captured", including a physical LPT1.
What that means is that you can instruct the OS to intercept any output
sent to an LPT device and reroute it to a network printer via its UNC
(Universal Naming Convention) path.
So, if you have 2 printers installed in the gui on LPT1, 2 on LPT2 and 5
network printers, that has *NOTHING* to do w/ how you print from the
command prompt.
Any output sent to LPT1 will go to the printer that is physically
attached to LPT1. Output sent to LPT2 or LPT3 will go nowhere unless
they are "captured":
net use LPTx \\[servername]\[printersharename] /persistent:[yes|no]
the '/persistent' switch will either recapture the LPT port or not at
the next logon.
hth