Solved

How to print form a DOS application to a network printer

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

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!    …
Remote Apps is a feature in server 2008 which allows users to run applications off Remote Desktop Servers without having to log into them to run the applications.  The user can either have a desktop shortcut installed or go through the web portal to…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…

623 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