Windows IT Pro is the leading independent community for IT professionals deploying Microsoft Windows server and client applications and technologies.
  
  
  Advanced Search 


April 28, 2000

DOS Printing


RSS
Subscribe to Windows IT Pro | See More Printing Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

We need to print from a finance package at a remote site, but we can't figure out how to map printers to the site. Is this because we depend on DOS mappings?

Citrix MetaFrame is best for handling DOS printing. Windows NT Server 4.0, Terminal Server Edition (TSE) with RDP doesn't let you map client printers, but this has changed in Windows 2000 Server Terminal Services. Win2K's RDP client supports local devices, such as printers. However, third-party products can extend the reach of Terminal Services. For example, TSE supports Line Print Remote (LPR) printing, which lets you create a Line Print Daemon (LPD) printer on the workstation and print to it. The Tektronix Windows-based terminal (WBT), for example, supports LPD as a separate process on the device, which means that TSE administrators can set up a print queue that points to the LPD printer on the Tektronix terminal. A user can connect from the Tektronix terminal to the LPR queue and print to the local printer. You can also use NT Workstation to create an LPD printer. NCD's ThinPATH Plus software, which you can download for free, improves the functionality of Terminal Services for both PCs and WBTs. Enhancements include support for local parallel and serial port connectivity, bidirectional data support, and Windows audio input and output capabilities.

MetaFrame and WinFrame 1.8 introduced the printer queue mapping option and the Client Printer Configuration utility on the DOS 32-bit Client. These tools let ICA DOS clients map printers manually in a session and autocreate printers at logon. You can turn the client printer queue mapping option on by clicking Options, Preferences, Allow Printer Queue Mapping on the DOS 32-bit Client, and a client will automatically map its local DOS printers to the server. For example, if a user has a printer connected to the LPT1 port, the server's LPT1 redirects to the client's LPT1. If this option is checked, the system creates printers based on the printer.ini file in the client's Wfclient directory and in conjunction with the Client Printer Configuration utility. If this option is not checked, you can configure a printer by clicking Printers, Add Printer in the Control Panel and selecting the client network and the printer. You can also go to a command prompt and type a Net Use command (e.g., Net Use LPT1: \\Client\LPT1:).

The ICA Client Printer Configuration functionality accompanies the Citrix DOS 32-bit Client 4.20.715 and higher and in some OEM client devices. You can use the tool to configure and manage client printer connections. If you check the tool's Allow Printer Queue Mapping box, users can choose Printer/New during a session and create a printer with the help of a wizard. As long as you have loaded the appropriate print driver, users should find this an easy and convenient way to print to their local printer.

End of Article



Reader Comments
Great technology! Now figure out a way to "net use LPT1: %localdefaultprinter%" where localdefaultprinter is the local machine default windows printer. This can be done manually but Win2000 administrators need a way to do in in logon scripts.

Bill Chaffin, MCSE April 29, 2000


If you use the net use lpt1 command to allow printing from dos programs to a network printer, how would you turn it off from a workstation which has its own printer attached to lpt1? This is what I did..net use lpt1:\\server\hpIII.
Now the other workstation with its own hpIII attached will only print to the network, and not to its own local printer.

Chuck Heath March 22, 2001


<br><br>
i try use command net use lpt1:\\servername\epson/presistent:yes, but still can not success, show up system error 67 has occurred, the network name can not be found
what's the problem about the command<br>

thanks/regards<br>

firmansyah August 29, 2001


I am trying to get it to work also... If there is an easy way to get the TS session info passed to the script it should work... I am worthless at scripting, but I have heard it can be done with kix or vb!


David February 18, 2002


the dos program uses lpt1 of the win2000server but the win2000server gives a ts00lpt1,prn locally. the dos application still uses the lpt1 of the printer and not the ts00x port. if i use a windows based program eveything its ok. when the dos based application tries to print nothing happend! i think a command like net use lpt1 :ts00x !! (if exists, for sure not). so?

stelios April 06, 2002


i want to print under windows98, situation is that we are using networkcar and printer is configured on IP address,i dont want to share that printer and want print from DOS base application.. in winnt and 2000 there is a command "LPr... , i m able to print useing that command but i want solution for win98.. pls reply me....



Ashish November 19, 2003


How to program for LPD&LPR,I want to write a program to be a lpr server to control the user to use printer?

thank you

Jim April 07, 2004


I tried, I used command net use lpt1:\\servername\epson/presistent:yes, but still can not success, show up system error 67 has occurred, the network name can not be found what's the problem about the command
thanks

Alejandra April 15, 2004


I need to print from our windows based software written in vb on a dot matrix printer. Since we need the solution through which we can print condensed format on dos printer.
printing need to be done on 80 col and 132 col.
please suggest me the soltion. though i know that chr can be used for this but what actualy combination and there meaning with ascii values i dont know.

Ashish Bajaj June 19, 2004


Alejandra,

I had the same problem with Win2000. I rebooted the laptop with it connected to the LAN and then used the net use command and the mapping worked. When I tried with out the connection to the LAN it failed with the error 67 just as you described. However, I need the ability to use the command when not connected to the LAN.

Hope that helps.

Lloyd - Oct 13, 2004

Anonymous User October 13, 2004


 See More Comments  1   2 

You must be a registered user or online subscriber to comment on this article. Please log on before posting a comment. Are you a new visitor? Register now




Top Viewed ArticlesView all articles
Confirmed: Battery Life Issues Not Windows 7's Fault

Microsoft on Monday issued a lengthy statement about the recent Windows 7 battery controversy, echoing my assessment from earlier in the day, but backing it up with hard, cold evidence. ...

Microsoft Warns of Windows Version Expirations

Microsoft warned that this year will see three out-of-date Windows versions slip into retirement. ...

Battery Life Issues Almost Certainly Not Windows 7's Fault

While Microsoft is still investigating a notebook battery life issue that was supposedly caused by Windows 7, some interesting trends have emerged. ...


Windows OSs Whitepapers Protecting Microsoft SharePoint

Related Events Deep Dive into Windows Server 2008 R2 presented by John Savill

Managing IT Across Multiple Locations

Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Introducing Left-Brain.com, the online IT bookstore
Looking for books, CDs, toolkits, eBooks? Prime your mind at Left-Brain.com

Discover Windows IT Pro eLearning Series!
Clear & detailed technical information and helpful how-to's, all in our trademark no-nonsense format


Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro DevProConnections IT Job Hound
Left-Brain.com Technology Resource Directory asp.netPRO ITTV Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 © 2010 Penton Media, Inc. Terms of Use | Privacy Statement