KnowledgeBase Archive

An Archive of Early Microsoft KnowledgeBase Articles

View on GitHub

Q245017: How to Redirect an MS-DOS-Based Print Job to a Network Printer.

Article: Q245017
Product(s): Microsoft Windows NT
Version(s): winnt:4.0
Operating System(s): 
Keyword(s): 
Last Modified: 08-AUG-2001

-------------------------------------------------------------------------------
The information in this article applies to:

- Microsoft Windows NT Workstation version 4.0 
-------------------------------------------------------------------------------

SUMMARY
=======

This article describes how to print a document from an MS-DOS-based program to a
printer connected to another workstation on the network. Because MS-DOS-based
programs support ports LPT1 through LPT3, you can redirect print jobs on port
LPT2 to the network printer.

MORE INFORMATION
================

At the command prompt, type the following line

  NET USE LPT2: \\computer name\share name of printer

where computer name is the name of the print server, and share name of printer is
the name of the printer share.

When you print a document from an MS-DOS-based program to port LPT1, the document
is printed to the local printer attached to the computer. If you type the
command 'NET USE LPT2: \\SHOP2\EPSONLQ' and then print a document to port LPT2,
the document is redirected over the network to the Epson printer attached to the
SHOP2 server.

NET USE redirections are stored in the registry by user, not by computer.
Therefore, each user who wants to send documents to a printer attached to
another workstation on the network needs to issue this command.

Additional query words:

======================================================================
Keywords          :  
Technology        : kbWinNTsearch kbWinNTWsearch kbWinNTW400 kbWinNTW400search kbWinNT400search
Version           : winnt:4.0
Issue type        : kbinfo

=============================================================================

THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Copyright Microsoft Corporation 1986-2002.