Solved

DOS PRINTING IN WINDOWS 2000 PROFESSIONAL

Posted on 2004-10-09
6
136 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
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:Luc Franken
Luc Franken 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

U.S. Department of Agriculture and Acronis Access

With the new era of mobile computing, smartphones and tablets, wireless communications and cloud services, the USDA sought to take advantage of a mobilized workforce and the blurring lines between personal and corporate computing resources.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Update a root certificate 8 652
Locking down a taskpad 1 149
Closing cmd window after script execution 4 253
windows 2000 - Enable wifi 7 132
What does UTC stand for?  “Coordinated Universal Time” – Think of this as the true time on Planet Earth that never changes with the exception of minor leap seconds here and there to account for the changes in the planet's rotation.   What does th…
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…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Edureka is one of the fastest growing and most effective online learning sites.  We are here to help you succeed.

911 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

21 Experts available now in Live!

Get 1:1 Help Now