General discussion

Locked

Windows 2000 Printer Capture

By men ·
How do I capture a LPT1 port to print to a network device on a Windows 2000 machine. There is an AS/400 end user that uses a 5250 emulation that insists on printing out the LPT1 port.

This conversation is currently closed to new comments.

9 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

Windows 2000 Printer Capture

by mpdcsup In reply to Windows 2000 Printer Capt ...

At a command prompt on the user's machine, type:

net use lpt1: \\printservername\printersharename

Collapse -

Windows 2000 Printer Capture

by mpdcsup In reply to Windows 2000 Printer Capt ...

If you want this to reconnect the user at every logon use the following:

net use lpt1: \\printservername\printersharename /persistent:yes

Collapse -

Windows 2000 Printer Capture

by mpdcsup In reply to Windows 2000 Printer Capt ...

Your user is using 5250 emulation to an AS/400 host and the emulation software they're using can only be configured to use LPT1. 5250 printing is strictly text so there is no need to add a printer driver (because unformatted text output is fully supported by hardware and design).

In fact, the *suggested* driver is probably already installed because the specific printer you're likely to map is the user's current default Windows printer -- for which you have already installed the driver.

All you're interested in, though, is redirecting the emulation software's LPT1 dependence.

Printing directly to the share isn't an option. Do you care about disconnecting? NET USE /? will give you details about arguments and usage. And, finally,if there were a printer hanging off LPT1, you wouldn't have a problem, right?

Did I miss something here? Why would you do more work? And how could I have been more precise in my original answer(s)?

Collapse -

Windows 2000 Printer Capture

by men In reply to Windows 2000 Printer Capt ...

Thank you very much for your help. I'm sorry that I couldn't close this quickly. I've been running all over the country with some other problems and just got back to this on. It worked perfectly.

Collapse -

Windows 2000 Printer Capture

by foxja In reply to Windows 2000 Printer Capt ...

Make sure you have the printer driver installed for the printer you are wanting to print to on the network....Navigate your network neighborhood to the server and install the printer
My Networks Places
Microsoft Windows Network
open the workgroupwhere the server resides
open the server
double click on the printer
and install the printer
Now that the printer is installed use one of the following methods from Microsoft Knowledge Base Article Q154498

Method 1

Establish a persistent connection using NET.EXE. To do so, use the following syntax at a command prompt:
net use lpt<x>: \\<printserver>\<sharename> /persistent:yes

Method 2
Print directly to the printer share by using the following syntax at a command prompt:
print/d:\\<printserver>\<sharename> <drive>:\<path>\<filename>

If the LPT port is redirected successfully, the following message should appear:
The command completed successfully.

To disconnect persistent LPTx connections, use the following syntax:
net use lpt<x> /delete

This should provide you with a properly installed printer drive connected to LPT port of your choosing. Use LPT1 for this user if they do not have a local printer already otherwise you will have to use LPT2 or LPT3 and instruct the Terminal Emulator to use the same local port.... Best of Luck


James Fox
Owner
Fox International Computing
http://fox2.foxcomputers.net

Collapse -

Windows 2000 Printer Capture

by men In reply to Windows 2000 Printer Capt ...

Poster rated this answer

Collapse -

Windows 2000 Printer Capture

by lucho In reply to Windows 2000 Printer Capt ...

I would have to agree with mpdcsup.
type: net use lpt1 \\printerservername\printersharename /persistent:yes

This is the UNC way of capturing a port from DOS.

Hope it helps.

Lucho.

Collapse -

Windows 2000 Printer Capture

by men In reply to Windows 2000 Printer Capt ...

Poster rated this answer

Collapse -

Windows 2000 Printer Capture

by men In reply to Windows 2000 Printer Capt ...

This question was closed by the author

Back to Desktop Forum
9 total posts (Page 1 of 1)  

Related Discussions

Related Forums