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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Connect to Network printer via dos command

Status
Not open for further replies.

Mojak

Technical User
Aug 16, 2001
66
SG
How can I connect to a network printer via dos(batch) command?

Server: Win NT/Novell
Client: Win98
Application: Sun System 4.2

The problem is the connection to the network printer is being disconnected even when i set reconnect on logon. You have to re-capture the printer port to make it work again. I'm planning to write a batch file so that the user can just click on it. Or can you suggest any good idea.

Thanks!!
 
Probably, you'll have to create a pipe every time the win98 cliënt starts
You should put something like this in that batch file
net use \\server\ipc$ pppp /user:domain\username

where pppp is the password of the user having permissions for that printer (If the user log on with the rigth account and password you can leave the pppp /user:domain\username part

You could also try to put the PC to log on to the domain. In that case your connection with the printer would be persistent (truly)

I hope this helped you ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top