Solved

DOS PRINTING IN WINDOWS 2000 PROFESSIONAL

Posted on 2004-10-09
6
135 Views
Last Modified: 2010-04-14
I am using Windows 2000 Professional as a client of Windows 2000 Server.
but i am unable to get the Dos Printing at Network.
Please Help me
 
0
Comment
Question by:rehanhussain
6 Comments
 
LVL 15

Accepted Solution

by:
scampgb earned 100 total points
Comment Utility
Hi rehanhussain,
I assume from what you've said, you've got a shared printer on your Win2k server that you want to print to from a DOS application on the Win2k pro machine?

To do this you need to redirect a printer port.  Assuming that the DOS application prints to parallel port 1 (and you don't have a printer plugged in there), you run:
NET USE LPT1: \\server\printershare

Where "server" is the name of the server, and "printershare" is the share name of the printer

Does that help?
0
 
LVL 32

Assisted Solution

by:Luc Franken
Luc Franken earned 100 total points
Comment Utility
Hi rehanhussain,

Try:
Net use LPT1: \\Servername\Printersharename /Persistent:Yes

Greetings,

LucF
0
 

Expert Comment

by:mwpenney
Comment Utility
I actually wrote a simple batch script to accomplish this.  I have a DOS program that I need to print from all the time to my network printer.  I set the program to print to LPT3 and instead of executing mydosprogram.exe directly, I execute this batch script which sets up dos printing and then runs the necessary program.  Save this .bat file in the same location as mydosprogram.exe

==================================================
@ECHO OFF

net use LPT3: /delete                      ;delete previous existance of port
net use LPT3: \\server\printer          ;path to printer
mydosprogram.exe                         ;program to run in dos
net use LPT3: /delete                      ;after you exit the program, control is returned to the batch script, and it deletes the port that was  
                                                     ;created
exit                                                ;exit the command prompt window

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

-Matt
0

Featured Post

Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Join & Write a Comment

NTFS file system has been developed by Microsoft that is widely used by Windows NT operating system and its advanced versions. It is the mostly used over FAT file system as it provides superior features like reliability, security, storage, efficienc…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, Just open a new email message.  In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

771 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now