Solved

DOS PRINTING IN WINDOWS 2000 PROFESSIONAL

Posted on 2004-10-09
6
139 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

Edgartown IT Case Study

Learn about Edgartown's quest to ensure the safety and security of the entire town's employee and citizen data. Read the case study!

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…
Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

717 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