Geldman
asked on
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?
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?
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 !
first lne
net use LPT1: \\srvr1\printer1 /yes
Substituting your LAN printer info.
second line is your DOS application.
I hope this helps !
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 !!
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 !!
Echo, echo, echo....
ASKER
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?
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?
jhance: I guess we are both on the ball this morning !!
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 !
win2k is trying to stay away from the DOS programs.
I hope this helps !
>>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.
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.
>>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.
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.
ASKER
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?
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?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
NET USE LPT1: \\SERVER\Printername