Solved

Network Printing in DOS

Posted on 2004-10-01
5
199 Views
Last Modified: 2010-04-10
i am upgrading a novell 3.12 network to windows server 2003.  there are dos based programs written in clipper that the hotel still needs to use.  all printers on the network were all local printers and shared through that user.  i have changed this so that all printers are now network printers with their own IP using Linksys printer servers.  the problem is that the programmer is saying he can only print to lpt 1, 2 or 3.  what changes need to be made in my printer configurations or in his programs so that we can have network printing and no longer have to print through other machines.?
0
Comment
Question by:sysadmin73
  • 2
5 Comments
 
LVL 15

Accepted Solution

by:
Yan_west earned 250 total points
ID: 12202790
when you share you printer on your server, you give it a share name like \\printer1

on your PC where you need to print in dos type:

net use lptx (x is the number) \\machinename\printersharename /persistent:yes

that's it, it will map your network printer on a simulated LPT1 port..
0
 
LVL 12

Assisted Solution

by:Mazaraat
Mazaraat earned 250 total points
ID: 12204752
You could create a logon script that has this in it (you can even assign different scripts/printers with Group Policies)

-------cut------

Dim WshNetwork
Set WshNetwork = WScript.CreateObject("WScript.Network")
WshNetwork.AddPrinterConnection "LPT1", \\IPADDRESS

-------cut-------
It will then map LPT1 to your printer.

You can add additional lines like:
WshNetwork.AddPrinterConnection "LPT2", \\IPADDRESS

adding this line will set teh default printer for the user:
WshNetwork.SetDefaultPrinter "\\ipaddress"



Post back if you need any help with the script.
0
 
LVL 12

Expert Comment

by:Mazaraat
ID: 12204799
OOPs correction-

You have to do the drive mappings by servername\share

Dim WshNetwork
Set WshNetwork = WScript.CreateObject("WScript.Network")
WshNetwork.AddPrinterConnection "LPT1", \\server\share

So share the printers off the server like Yan said above, then use this as part of your logon script to map them for the users
0

Featured Post

Free camera licenses with purchase of My Cloud NAS

Milestone Arcus software is compatible with thousands of industry-leading cameras for added flexibility. Upon installation on your My Cloud NAS, you will receive two (2) camera licenses already enabled in the software. And for a limited time, get additional camera licenses FREE.

Join & Write a Comment

I was recently sitting at a desk at work with one of my colleagues and needed some information on my home computer. He watched as I turned on my home computer, established a remote session into it, got the information I needed and then shut it down …
Let’s list some of the technologies that enable smooth teleworking. 
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now