How to Print to Network Printer from MS-DOS-Based ProgramsLast reviewed: October 20, 1997Article ID: Q154498 |
The information in this article applies to:
SUMMARYThis article describes how to print to a network printer from an MS-DOS- based program in Windows NT. 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 INFORMATION
Method 1Establish a persistent connection using NET.EXE. To do so, use the following syntax at a command prompt:
net use lpt<x>: \\<printserver>\<sharename> /persistent:yes Method 2Print directly to the printer share by using the following syntax at a command prompt:
print /d:\\<printserver>\<sharename> <drive>:\<path>\<filename> MORE INFORMATIONWhen printing to a Novell Netware 3.12 printer queue, use the following syntax:
net use lpt<x> \\server\queueIf the LPT port is redirected successfully, the following message should appear:
The command completed successfullyTo disconnect persistent LPTx connections, use the following syntax:
net use lpt<x> /deleteNetware is manufactured by Novell, Inc., a vendor independent of Microsoft; we make no warranty, implied or otherwise, regarding this product's performance or reliability.
|
Additional query words: prodnt 3.10 3.50 3.51 4.00 capture port LPT1 LPT2
© 1998 Microsoft Corporation. All rights reserved. Terms of Use. |