Improve company productivity with a Business Account.Sign Up

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 173
  • Last Modified:

Printing in Windows 2000

Most DOS programs like dBase, R&R reporting etc. print to LPT1 printer port.

In Windows 2000 I was unable to capture LPT1 and direct it to a printer on onother computer.

Is there a way to print from DOS programs in Windows 2000 on a network?
0
Geldman
Asked:
Geldman
  • 5
  • 4
  • 2
1 Solution
 
jhanceCommented:
Use the NET USE command to "capture" a network printer to the LPT1: port.  A command like:

NET USE LPT1: \\SERVER\Printername
0
 
SysExpertCommented:
Make a batch file.
first lne
  net use LPT1: \\srvr1\printer1 /yes

Substituting your LAN printer info.

second line is your DOS application.

I hope this helps !
0
 
SysExpertCommented:
Correction !!!
Actually, for DOS applications

use

net use \\srvr1\printer1 /yes

no LPT1 !!
This sets the default LPT used by DOS programs.

I hope this hels !!
0
Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
jhanceCommented:
Echo, echo, echo....
0
 
GeldmanAuthor Commented:
to: SysExpert

I tried with LPT1 and it works fine. Why not use LPT1? I guess I can also capture LPR2 this way.

Also, is it true that you can not capture any more a printer port in Windows 2000?
0
 
SysExpertCommented:
jhance: I guess we are both on the ball this morning !!
0
 
SysExpertCommented:
Well, what you just did is actually a capture. It is simply done at the command line instead of from the GUI interface.

win2k is trying to stay away from the DOS programs.

I hope this helps !
0
 
jhanceCommented:
>>Also, is it true that you can not capture any more a printer port in Windows 2000?

Really the only thing that's changed is the removal of the capture option from the printer control panel.  The net effect is the same, the NET USE vs. the "capture" in the printer applet did the same thing.

You don't need to do this more than once as W2K will remember the NET USE you've specified for LPT1 and it will be available until you use the NET USE /DELETE option to get rid of it at some point in the future.
0
 
jhanceCommented:
>>Why not use LPT1? I guess I can also capture LPR2 this way.

I think you SHOULD use LPT1 in this command.  That way you will know which local port is captured.  If you don't you could run into a situation where you'll need to changed the setup of your DOS program since it will now be some other LPT port.

And yes, you can also capture LPT2 (as well as other LPT ports) using this technique.
0
 
GeldmanAuthor Commented:
To: jhance

You mean that even after booting the computer it will remember the Net Use command and the only way to change it is by net use /delete?
0
 
jhanceCommented:
Yes, that's the idea.  Windows 2000 does remember the NET USE settings from one reboot to another.

I think you're going to want LPT1 available for your DOS programs all the time, right?  Otherwise, it's a real pain in the behind to always have to remember to capture the port.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

  • 5
  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now