Solved

Network Printing in DOS

Posted on 2004-10-01
5
238 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

#Citrix #Citrix Netscaler #HTTP Compression #Load Balance
If you're not part of the solution, you're part of the problem.   Tips on how to secure IoT devices, even the dumbest ones, so they can't be used as part of a DDoS botnet.  Use PRTG Network Monitor as one of the building blocks, to detect unusual…
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
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…

751 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