K
kim2000
Hello all,
I have a small Win98 peer to peer TCP/IP network. One of my DOS
programs on one system on the network prints PCL to a laser printer
connected to LPT1.
I now have a new network printer, HP1320n, that plugs straight into my
network switch. The printer's IP is 192.168.1.10. This printer works
perfectly from Windows, both using the PCL driver and the PS driver.
When I open the Printer Properties/Details tab on the system that has
the DOS program, the Port is shown as (again for both the PCL and PS
drivers):
hpLaserJet1320series (HP Standard TCP/IP Port)
Now I want to redirect the lpt output from the DOS program (and only
from the DOS program) to this printer. This is what I did:
First I made the printer a shared printer and called it HP1320n.
Then I used the Net Use command:
NET USE LTP1 \\one\\hp1320n
where "one" is the name of the computer but I got the following error:
Error 2106: This operation cannot be performed to your own computer; it
can only be performed to a server.
What do I do to resolve this? Do I really need to make it a shared
printer before the Net Use command? After all the printer is already on
the network. I tried the following:
net use lpt1 "HP Standard TCP/IP Port"
and
net use lpt1 "hpLaserJet1320series (HP Standard TCP/IP Port)"
and even
net use lpt1 \\192.168.1.10
and got syntax errors each time.
I want to be able to put the Net Use command in a batch file so that I
can remove the redirect using the /delete switch after the DOS program
is closed.
All help appreciated.
- Kim
I have a small Win98 peer to peer TCP/IP network. One of my DOS
programs on one system on the network prints PCL to a laser printer
connected to LPT1.
I now have a new network printer, HP1320n, that plugs straight into my
network switch. The printer's IP is 192.168.1.10. This printer works
perfectly from Windows, both using the PCL driver and the PS driver.
When I open the Printer Properties/Details tab on the system that has
the DOS program, the Port is shown as (again for both the PCL and PS
drivers):
hpLaserJet1320series (HP Standard TCP/IP Port)
Now I want to redirect the lpt output from the DOS program (and only
from the DOS program) to this printer. This is what I did:
First I made the printer a shared printer and called it HP1320n.
Then I used the Net Use command:
NET USE LTP1 \\one\\hp1320n
where "one" is the name of the computer but I got the following error:
Error 2106: This operation cannot be performed to your own computer; it
can only be performed to a server.
What do I do to resolve this? Do I really need to make it a shared
printer before the Net Use command? After all the printer is already on
the network. I tried the following:
net use lpt1 "HP Standard TCP/IP Port"
and
net use lpt1 "hpLaserJet1320series (HP Standard TCP/IP Port)"
and even
net use lpt1 \\192.168.1.10
and got syntax errors each time.
I want to be able to put the Net Use command in a batch file so that I
can remove the redirect using the /delete switch after the DOS program
is closed.
All help appreciated.
- Kim