Solved

How to print form a DOS application to a network printer

Posted on 2007-11-14
3
609 Views
Last Modified: 2013-12-05
I have a DOS application on a Windows 2000 Server, that is being accessed by serval people on workstations. I need to setup a way that users can print reports from this application to a network printer.
Currently only users that have a printer connected locally to port LPT1 can print. How can I redirect DOS print jobs to the network printer. And can I automate this.

0
Comment
Question by:ecshelpdesk
3 Comments
 
LVL 12

Expert Comment

by:weareit
ID: 20282963
NET USE LPT1 \\servername\sharename

You will have to give the clients administrative rights on the local computers as group policy prohibits redirecting LPT1.

-saige-
0
 
LVL 12

Expert Comment

by:sarangk_14
ID: 20283409
I think one of the following should do the trick for you:

Log on as an administrator, and then use the command: net use lptx \\pserver\sharename /persistent:yes

Use the devcon disable *PNP0401 command to disable the LPT port mapping to the local parallel port when the computer starts. The devcon disable *PNP0401 command is for LPT1. To find the hardware ID for other LPT ports, use the devcon findall * command. The devcon command must run when the computer starts. For a computer in a domain, you can set up Group Policy to run devcon as a computer startup script. To set Group Policy, open the appropriate group policy, open Computer Configuration\Windows Settings\Scripts (Startup/Shutdown)\Startup, and then add the command.
      An excellent article about how to use the "devcon" utility as well as downloading instructions can be found at: http://support.microsoft.com/kb/311272/ 

If your program can print to the LPT2 port or the LPT3 port, use the net use command to map the network printer to the LPT2 port or the LPT3 port. Most computers do not have physical LPT2 or LPT3 ports, so a non-administrator can map an LPT2 port or an LPT3 port to a network printer.

As for your question about automating the process, could you not: Open "Active Directory User and Computers" and right-click the Organisational Unit in question. Go to "Properties", then select the "Group Policy" tab. Put your script there?

All the best.
0
 
LVL 1

Accepted Solution

by:
Corvoir earned 250 total points
ID: 20283548
Hi,

An easy way to solve this problem is a tool called: DOSPRN (www.dosprn.com/)
I used this tool in a doctors office with an EMD in DOS, to print medicin prescriptions.


0

Featured Post

Will my email signature work in Office 365?

You've built an email signature using raw HTML code in Office 365, but you can't review how it looks with Transport Rules. So you have to test it over and over again before it can be used. Isn't this a bit of a waste of your time? Wouldn't a WYSIWYG editor make it a lot easier?

Question has a verified solution.

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

Suggested Solutions

It is only natural that we all want our PCs to be in good working order, improved system performance, so that is exactly how programs are advertised to entice. They say things like:            •      PC crashes? Get registry cleaner to repair it!    …
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

896 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

12 Experts available now in Live!

Get 1:1 Help Now