Select the product you need help with
How to Print to Network Printer from MS-DOS-Based ProgramsArticle ID: 154498 - View products that this article applies to. This article was previously published under Q154498 For a Microsoft Windows XP version of this article, see 314499
(http://support.microsoft.com/kb/314499/EN-US/
)
.
On This PageSUMMARY
This article describes how to print to a network printer from an MS-DOS-
based program in Windows. By default, most MS-DOS-based programs print
directly to either LPT1 or LPT2. However, the output is not automatically
routed across a redirector to a print share unless you use one of the
following methods.
MORE INFORMATIONMethod 1Establish a persistent connection using NET.EXE. To do so, use the following syntax at a command prompt:
net use lptx: \\printserver\sharename /persistent:yes
Method 2Print directly to the printer share by using the following syntax at a command prompt:
print /d:\\printserver\sharenamedrive:\path\filename
Because Novell NetWare's CAPTURE command is not supported in Windows NT
4.0, use the following command to map the LPT port to a Novell NetWare
printer queue:
net use lptx \\server\queue
If the LPT port is redirected successfully, the following message should
appear:
The command completed successfully.
To disconnect persistent LPTx connections, use the following syntax:
net use lptx /delete
NOTE: When attempting to use the CAPTURE command, the may receive the following error message (The error message may vary depending on the version of NetWare):
CAPTURE-4.01-923: An unexpected error has occurred: 255 (00FF). (SPOOL.C: [426]) 156429
Netware is manufactured by Novell, Inc., a vendor independent of
Microsoft; we make no warranty, implied or otherwise, regarding this
product's performance or reliability.
(http://support.microsoft.com/kb/156429/EN-US/
)
Supported 16-bit Utilities and NetWare-Aware Applications
PropertiesArticle ID: 154498 - Last Review: February 27, 2007 - Revision: 2.2 APPLIES TO
| Article Translations
|


Back to the top








