Discussion Locked

Net Use LPT3: port disconnects

0 helpful
5 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

Hello,
A program that we use prints only to LPT pritner ports. To create such port we use the command "Net Use LPT3: \\\ /Persistent:yes"

Now, we use computer name instead of server name because the computer is installed on the local computer and shared. The problem that we are having is that within a couple of days the port gets disconnected. When the NET USE command is used, the status of the port is "DISCONNECTED". To fix this problem we have to delete the port and recreate it.

Is there something that can fix this problem from ocurring?

5 replies

by aj4mq

Unforunately, Windows will do this for a number of reasons.. one possibility is to use a persistent connection.

net use \\server\printshare /persistent:yes /user:username password

another possibility is to use a .VBS script to maintain the connection.

Unfortunately, I am dealing with the same problem..

HOWEVER, I have a solution as your company upgrades.. To run your DOS application on Windows 7 or 64 bit systems, look into DosBox on sourceforge.net. It is an open-source DOS emulator. Using DBase applications (yes, we still do), we needed something to allow it to work. a little hard to configure, but you don't need the net use lpt1 command. works in Linux also..

Enjoy.

This discussion is closed to new replies.