Remote Tech Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Tuesday, 28 September 2010

How to print to a network printer from an MS-DOS-based program in Windows XP

Posted on 11:12 by Unknown

How to print to a network printer from an MS-DOS-based program in Windows XP




By default, most MS-DOS-based programs print directly to either the LPT1 port or to the LPT2 port. However, the output is not automatically routed across a redirector to a print share unless you use one of the following methods.

Method 1

Use the net.exe command to establish a persistent connection. To do this, use the following syntax at a command prompt
net use lptx \\printserver\sharename /persistent:yes
where x is the number of the printer port that you want to map, where printserver is the print server that is sharing the printer, and where sharename is the name of the printer share.

For example, to map LPT2 to a printer shared as Laser1 on a print server that is named Pserver, follow these steps:
  1. Click Start, and then click Run.
  2. In the Open box, type cmd, and then click OK.
  3. Type net use lpt2 \\pserver\laser1 /persistent:yes, and then press ENTER.
  4. To quit the command prompt, type exit, and then press ENTER.
Note In Windows XP, non-administrative users cannot map an LPT port to a network printer path when the LPT port exists on the computer as a physical parallel port.

For more information about how to map LPT ports as a regular user, click the following article number to view the article in the Microsoft Knowledge Base:
313644  Non-administrators cannot remap an LPT port to a network printer

Method 2

Print directly to the printer share by using the following syntax at a command prompt
print /d:\\printserver\sharenamedrive:\path\filename
where printserver is the print server sharing the printer, where sharename is the name of the printer share, and where drive:, path, and filename make up the complete path of the document that you want to print.

For example, to print a document that is named letter.doc from the root directory of drive C to a printer shared as Laser1 on a print server that is named Pserver, follow these steps:
  1. Click Start, and then click Run.
  2. In the Open box, type cmd, and then click OK.
  3. Type print /d:\\pserver\laser1 c:\letter.doc, and then press ENTER.

    The following command-line message appears:
    C:\letter.doc is currently being printed
  4. To quit the command prompt, type exit, and then press ENTER.
Because Novell NetWare's CAPTURE command is not supported in Windows XP, use the following command to map the LPT port to a Novell NetWare print queue:
net use lptx \\server\queue
If the LPT port is redirected successfully, you receive the following message:
The command completed successfully.

To disconnect persistent LPTx connections, use the following syntax:
net use lptx /delete


Email ThisBlogThis!Share to XShare to Facebook
Posted in Printer Trouble shooting, Printing Tips | No comments
Newer Post Older Post Home
View mobile version

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Windows Server 2008 Core Command Guide
    Windows Server 2008 Core Command Guide What Command Set DNS IP Netsh int ipv4 set dns “local area connection” stat...
  • USB Disk Security 5.4.0.12
    USB Disk Security -  Download 100% protection against any threats via USB storage USB Disk Security is a top-rated antivirus utility that pr...
  • GDS COMMITTEE IMPLEMENTATION ORDERS RELEASED BY DIRECTORATE TODAY
    GDS COMMITTEE IMPLEMENTATION ORDERS RELEASED BY DIRECTORATE TODAY POSTAL DIRECTORATE ISSUED ORDERS TODAY FOR IMPLEMENTING THE GDS COMMITTEE ...
  • (no title)
    POSTAL RATES INDEX Letters / Book Post Registered Articl...
  • Most Useful Websites
           The list primarily highlights the lesser-known or undiscovered websites and misses out all-time favorites like Google Docs, Wikipedia...
  • Commands in Windows Vista
    Windows Vista Command Line List and Reference The list of commands available in the command line shell for Windows Vista is similar to that ...
  • Save queries in Windows Server 2003's Active Directory Users and Computers tool
    Windows Server 2003 administrators can’t live without the Active Directory Users and Computers tool. Here’s a quick look at the saved querie...
  • PDF into Word ( Document) converter
    PDF into Word ( Document) Converter         PDF2Word(pdf to word) software enable export the text, images and other contents from pdf docume...
  • THIRUKKURAL PDF DOWNLOAD (தமிழ் )
    CLICK HERE TO DOWNLOAD THIRUKKURAL (தமிழ்)    or CLICK HERE TO DOWNLOAD THIRUKKURAL (TAMIL & ENGLISH)    or CLICK HERE TO DOWNLOAD THIR...
  • How to shutdown computer automatically at a specific time
    Trick 1: Start > Run Type ' shutdown -s -t 1800 ' without quotes Click OK A dialog will appear showing the countdown t...

Categories

  • Computer Guidelines
  • Customer Care
  • DB Tools
  • Drivers
  • Entertainments
  • FAQ
  • For System Administrators
  • FTP
  • General Informations
  • General Knowledge
  • Guidelines
  • Hardwares
  • Health Tips
  • Internet Tips
  • Latest Software Updates
  • Network Trouble shooting
  • Printer Trouble shooting
  • Printing Tips
  • Recovery Tips
  • Registry Tips
  • Registry Tools
  • Security Guidelines
  • Security Tips
  • Software Tips
  • Softwares
  • SQL
  • Technology
  • Tips and Tricks
  • Tools
  • Trouble shooting
  • Useful Softwares
  • Utilities
  • Virus Solutions
  • Websites
  • windows 7
  • Windows Server
  • Windows Tips
  • Windows Vista
  • Windows XP FAQ

Blog Archive

  • ►  2011 (138)
    • ►  May (32)
    • ►  April (24)
    • ►  March (29)
    • ►  February (15)
    • ►  January (38)
  • ▼  2010 (241)
    • ►  December (55)
    • ►  November (40)
    • ►  October (21)
    • ▼  September (35)
      • HP LJ 1007 Laser Printer - Driver
      • How to print to a network printer from an MS-DOS-b...
      • DISCUSSIONS ON VARIOUS ISSUES TAKEN UP BY THE STAF...
      • Tips to Prevent Computer Fraud
      • Disabling or enabling Windows XP System Restore
      • History, Facts and Information about Roman Numerals
      • Recruitment Processing Software
      • Hirens BootCD 11.0 + Multilingual Keyboard Patch
      • Actice Directory FAQ with Answers
      • Windows Server 2008 Core Command Guide
      • NIC Guide for DOP People
      • General Network Connectivity Problems
      • How to troubleshoot network connectivity problems
      • Windows Registry Editor, Task Manager Problem
      • Windows Adminstrator Password Recovery
      • Computer Vision 101: Simple Tips Your Eyes Will Ap...
      • Health Tips for Computer Users
      • ADMINISTRATOR ACCOUNTS AND VIRUSES
      • Health Tips - Heart Attack
      • Suspect SQL Server 2000 Database
      • REPORT OF THE COMMITTEE OF EXPERTS ON DISCIPLINARY...
      • How to create a "Restore Point" and how to get our...
      • Troubleshoot printer problems
      • Scientific meaning of Gaytri Manthra
      • How to Improve Printing Quality
      • How to use Remote Desktop Utility
      • How to Share Files and Printer in the Local Area N...
      • Administrator and User Passwords in Windows XP
      • Enable Vista's Built-in Administrator Account
      • How to Set Password to Protect Files or Folders in...
      • Save queries in Windows Server 2003's Active Direc...
      • How to Create Active Directory ( In Windows Server...
      • How to Join a Domain in Windows 7
      • Delete IE7 History From the Command Line
      • Changing the default SQL Server backup folder
    • ►  August (39)
    • ►  July (23)
    • ►  June (5)
    • ►  May (2)
    • ►  April (12)
    • ►  March (4)
    • ►  February (2)
    • ►  January (3)
  • ►  2009 (26)
    • ►  December (5)
    • ►  November (3)
    • ►  October (4)
    • ►  September (5)
    • ►  August (3)
    • ►  July (5)
    • ►  June (1)
Powered by Blogger.

About Me

Unknown
View my complete profile