Printing - Port Capture of LPT1

  • Thread starter Donald Campbell
  • Start date
D

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
 
H

HeyBub

Donald said:
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.
 
D

Donald Campbell

HeyBub said:
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.

Thanks for that. The net use seems to do the trick.

BR
Don C
 
S

Sinbad The Sailor

Good answer.


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.
 
B

Bruce Chambers

Donald said:
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://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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top