Discussion:
Printing - Port Capture of LPT1
(too old to reply)
Donald Campbell
2009-02-04 12:08:25 UTC
Permalink
Need to run an old MS/DOS program that prints directly to LPT1 port

Trying to upgrade an old Windows2000 system and I have an issue with an
old MS/DOS application that writes direct to the LPT1 or LPT2 device.

Win98 and Win2000 had "port capture" that would intercept the direct
printing and allow you to push it to a network printer on another PC.

Is there a way of doing this in XP Pro ?

Thanks


BR
Don C
Bob I
2009-02-04 14:08:45 UTC
Permalink
See NET USE in Help.

NET USE LPT1 \\servername\printername
Post by Donald Campbell
Need to run an old MS/DOS program that prints directly to LPT1 port
Trying to upgrade an old Windows2000 system and I have an issue with an
old MS/DOS application that writes direct to the LPT1 or LPT2 device.
Win98 and Win2000 had "port capture" that would intercept the direct
printing and allow you to push it to a network printer on another PC.
Is there a way of doing this in XP Pro ?
Thanks
BR
Don C
HeyBub
2009-02-04 14:12:08 UTC
Permalink
Post by Donald Campbell
Need to run an old MS/DOS program that prints directly to LPT1 port
Trying to upgrade an old Windows2000 system and I have an issue with
an old MS/DOS application that writes direct to the LPT1 or LPT2
device.
Win98 and Win2000 had "port capture" that would intercept the direct
printing and allow you to push it to a network printer on another PC.
Is there a way of doing this in XP Pro ?
Thanks
Yes. Two ways that I know of.

1. Get the program RPV - Report Program Viewer (or similar). This requires
that your old DOS programs be converted to send all their printing to a file
in a directory you specify. Meanwhile RPV is looping looking for any file in
that same folder. When RPV finds a file, it does a file-to-print dance using
any printer you desire.

2. Visit
http://members.shaw.ca/bsanders/printfromdos.htm

This technique maps the local printer to a network printer (which happens to
be on the same machine). Essentially:
1. Open printer's PROPERTY page
2. Select SHARING tab
3. Select SHARE THIS PRINTER
4. Supply a name for this printer (short, no spaces). This is the
printersharename below
5. Select OK
6. From a command prompt, enter

net use lpt1: \\computername\printersharename /persistent:yes

Hope this helps.

2.
Donald Campbell
2009-02-04 15:02:48 UTC
Permalink
Post by HeyBub
Post by Donald Campbell
Need to run an old MS/DOS program that prints directly to LPT1 port
Trying to upgrade an old Windows2000 system and I have an issue with
an old MS/DOS application that writes direct to the LPT1 or LPT2
device.
Win98 and Win2000 had "port capture" that would intercept the direct
printing and allow you to push it to a network printer on another PC.
Is there a way of doing this in XP Pro ?
Thanks
Yes. Two ways that I know of.
1. Get the program RPV - Report Program Viewer (or similar). This requires
that your old DOS programs be converted to send all their printing to a file
in a directory you specify. Meanwhile RPV is looping looking for any file in
that same folder. When RPV finds a file, it does a file-to-print dance using
any printer you desire.
2. Visit
http://members.shaw.ca/bsanders/printfromdos.htm
This technique maps the local printer to a network printer (which happens to
1. Open printer's PROPERTY page
2. Select SHARING tab
3. Select SHARE THIS PRINTER
4. Supply a name for this printer (short, no spaces). This is the
printersharename below
5. Select OK
6. From a command prompt, enter
net use lpt1: \\computername\printersharename /persistent:yes
Hope this helps.
2.
Thanks for that. The net use seems to do the trick.

BR
Don C
Sinbad The Sailor
2009-02-04 15:11:34 UTC
Permalink
Good answer.
Post by HeyBub
Post by Donald Campbell
Need to run an old MS/DOS program that prints directly to LPT1 port
Trying to upgrade an old Windows2000 system and I have an issue with
an old MS/DOS application that writes direct to the LPT1 or LPT2
device.
Win98 and Win2000 had "port capture" that would intercept the direct
printing and allow you to push it to a network printer on another PC.
Is there a way of doing this in XP Pro ?
Thanks
Yes. Two ways that I know of.
1. Get the program RPV - Report Program Viewer (or similar). This requires
that your old DOS programs be converted to send all their printing to a file
in a directory you specify. Meanwhile RPV is looping looking for any file in
that same folder. When RPV finds a file, it does a file-to-print dance using
any printer you desire.
2. Visit
http://members.shaw.ca/bsanders/printfromdos.htm
This technique maps the local printer to a network printer (which happens to
1. Open printer's PROPERTY page
2. Select SHARING tab
3. Select SHARE THIS PRINTER
4. Supply a name for this printer (short, no spaces). This is the
printersharename below
5. Select OK
6. From a command prompt, enter
net use lpt1: \\computername\printersharename /persistent:yes
Hope this helps.
2.
Bruce Chambers
2009-02-05 01:48:03 UTC
Permalink
Post by Donald Campbell
Need to run an old MS/DOS program that prints directly to LPT1 port
Trying to upgrade an old Windows2000 system and I have an issue with an
old MS/DOS application that writes direct to the LPT1 or LPT2 device.
Win98 and Win2000 had "port capture" that would intercept the direct
printing and allow you to push it to a network printer on another PC.
Is there a way of doing this in XP Pro ?
Thanks
BR
Don C
Create a network share for the printer (This can be done even if
your PC is the only member of its workgroup), and then use the Net Use
command to redirect the DOS output. For example:

NET USE LPT1 \\ComputerName\PrinterShareName /PERSISTENT:YES
--
Bruce Chambers

Help us help you:
http://www.catb.org/~esr/faqs/smart-questions.html

http://support.microsoft.com/default.aspx/kb/555375

They that can give up essential liberty to obtain a little temporary
safety deserve neither liberty nor safety. ~Benjamin Franklin

Many people would rather die than think; in fact, most do. ~Bertrand Russell

The philosopher has never killed any priests, whereas the priest has
killed a great many philosophers.
~ Denis Diderot
Loading...