For Programmers: Free Programming Magazines  


Home > Archive > Clipper > April 2004 > Print to Network Printer from WIN NT Workstation









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Print to Network Printer from WIN NT Workstation
Donald Leask

2004-03-31, 4:30 am

Greetings All

I am not an NT wizard at all... How do I capture a printer port on a NT
workstation to a network printer physically attached to the Win NT server
for a DOS program?



Klemens Lichter

2004-03-31, 12:30 pm

HI,

did you try

NET USE LPTn: \\servername\printername

??

There are several options (at least in W2K) for this command like
/PERSISTENT=YES (than this capture remains valid even if the PC has ben shut
down and restartet) etc. Please check HELP NET or HELP NET USE or NET /?

Klemens

"Donald Leask" <donald@softdown.net> schrieb im Newsbeitrag
news:406a84fb.0@news1.mweb.co.za...
> Greetings All
>
> I am not an NT wizard at all... How do I capture a printer port on a NT
> workstation to a network printer physically attached to the Win NT server
> for a DOS program?
>
>
>



Klas Engwall

2004-03-31, 6:30 pm

Donald,

>I am not an NT wizard at all... How do I capture a printer port on a NT
>workstation to a network printer physically attached to the Win NT server
>for a DOS program?


If you want to do it from inside a Clipper application you can use
LM_Redirect() from my LanMan Library. It can be downloaded from
<http://www.engwall.com/clipper/lanmanlib.htm>.

Klas

-------
klas dot engwall at engwall dot com

Spammers, please use this address :-) mailto:postmaster@[127.0.0.1]
Mars Wu

2004-04-01, 5:30 am

try
net use lpt1 \\computername\printername

"Donald Leask" <donald@softdown.net> ¦b¶l¥ó news:406a84fb.0@news1.mweb.co.za
¤¤¼¶¼g...
> Greetings All
>
> I am not an NT wizard at all... How do I capture a printer port on a NT
> workstation to a network printer physically attached to the Win NT server
> for a DOS program?
>
>
>



Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com