Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Print to Com port from network 1

Status
Not open for further replies.

DougP

MIS
Joined
Dec 13, 1999
Messages
5,985
Location
US
I have a winodws XP box with a barcode label printer attached to both Com1 and another to LPT1
We would like to be able to print to the printer from other computers

now I send a DOS file like so from the local machine
Copy mfile.txt com1
and
Copy mfile.txt plt1

Can I share the Com port and LPT so I can use them
or is there another way?
Net use or something
TIA

DougP, MCP, A+
 
you can share the printer on the lpt port and use net use to be able to print to it remotely from dos, I've never tried it to a com port based printer but its worth a shot.
 
So what is the syntax on the local machine
NET USE LPT1 ????

then how to I refer to it on a network PC
Copy Myfile.txt \\localmachine\????

DougP, MCP, A+
 
Start, Printers and FAXes, Add Printer, Local Printer...
 
How do I refer to the COM port from another network PC?

DougP, MCP, A+
 
You do not have to.

Just Start, Printers and FAXes, Add Printer, Network Printer, and browse for the printer sharename of the remote printer.

You then can assign a local port to the sharename of the remote printer. For example, even if on the remote computer the computer is connected to COM1:, you can assign it to LPT1: on your computer, or assign it to COM3:, or whatever local device assignment you chooose.

 
First you need to set up and share the printers on the remote computer:
Printer1 goes to LPT1
Printer2 goes to COM1

Then on the local computers, map the ports to the shared remote printers:
net use lpt1: \\RemoteName\Printer1Name /PERSISTENT:YES
net use com1: \\RemoteName\Printer2Name /PERSISTENT:YES

Now your "Copy MyFile.txt LPT1" should work on the local
 
Ha! took too long to type and bcastner snuck in with the same answer

cheers
 
Thanks MitchCumstein

this is what I was looking for
was the syntax


DougP, MCP, A+
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top