Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirect to LPT3 on WinXP

Status
Not open for further replies.

herrld

Technical User
May 10, 2001
69
US
I am running a dos application from WinXP. I need to be able to direct printing from within my application, w/o user intervention, to the printer on LPT3. Before XP, the batch file used a setprt 3 to set the printer to LPT3. That no longer works. I can capture a specific printer to LPT3 from within my batch file, but I can't make the app use LPT3.
I don't have the option of using LPT1 (the users default printer).
Any suggestions?



Linda
 
This sound like an "environment" issue.

If all you are doing in your batch file is redirecting printing to LPT3 try creating a .PIF file directly to the application itself.

You can also setup a config file for the app's PIF to use. See config.nt in the winnt\system32 directory for an example of a config file. You can open the config file with Notepad.

You point the pif file to a config file from the PIF's Properties > Program TAB > advanced button.

Good luck ... The two rules for success are:
1. Never tell them everything you know.

 
Thanks. That's pretty cool. Learned something new today. Linda
 
Let us know what you did and if it worked! :) The two rules for success are:
1. Never tell them everything you know.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top