Solved

DOS PRINTING IN WINDOWS 2000 PROFESSIONAL

Posted on 2004-10-09
6
138 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 15

Accepted Solution

by:
scampgb earned 100 total points
ID: 12265787
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:LucF
LucF earned 100 total points
ID: 12265789
Hi rehanhussain,

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

Greetings,

LucF
0
 

Expert Comment

by:mwpenney
ID: 12293947
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

Free Webinar: AWS Backup & DR

Join our upcoming webinar with experts from AWS, CloudBerry Lab, and the Town of Edgartown IT to discuss best practices for simplifying online backup management and cutting costs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

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…
This article was originally published on Monitis Blog, you can check it  here .   Some years back, I worked as the CTO.  During my tenure, I had a head of IT support reporting to me.  He did his job quite well and had a commendable sense of duty…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

726 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