Solved

How to print form a DOS application to a network printer

Posted on 2007-11-14
3
607 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Welcome to my series of short tips on migrations. Whilst based on Microsoft migrations the same principles can be applied to any type of migration. My first tip Migration Tip #1 – Source Server Health can be found here: http://www.experts-exchang…
We have adopted the strategy to use Computers in Student Labs as the bulletin boards. The same target can be achieved by using a Login Notice feature in Group policy but it’s not as attractive as graphical wallpapers with message which grabs the att…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

744 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