Printing from DOS Application

N

Nancy

I have a DOS application that will only print to LPT
ports. I would like to print to a networked printer using
XP. The networked printer shows the port as an IP
address. In Win98 you could still connect a networked
printer to a LPT port. Can you do this in XP? I haven't
figured out how to do this.
 
G

Gary

Nancy,

If you find out how to do this, please let me know. I
posted a similar question this morning and haven't
receided any responses. If I do, I will copy it to you
also.
Thanks.
 
G

Gene Meiners

Nancy,
I am a Dos user. I picked up on this site this solution
for the LPT1 redirection, if this is possible. Use
the "net use" command after sitting the printer up as a
share device on your pc if you desire to or allowed to.

To see the parameters in Dos do a NET /? and then a NET
USE /?
The full command I use is "net use lpt1:
\\computername\printersharename /persistent:yes"

Maybe you can help me. I like to print/copy files to
LPT1 which contain printer control characters,(HP). Have
you heard of an editor in windows that allows the control
character thru the print processors. Notepad, etc always
change the contol characters.

Hope my comments help.

GM.
 
G

Guest

Gene,
This worked perfectly...Thank you!
-----Original Message-----
Nancy,
I am a Dos user. I picked up on this site this solution
for the LPT1 redirection, if this is possible. Use
the "net use" command after sitting the printer up as a
share device on your pc if you desire to or allowed to.

To see the parameters in Dos do a NET /? and then a NET
USE /?
The full command I use is "net use lpt1:
\\computername\printersharename /persistent:yes"

Maybe you can help me. I like to print/copy files to
LPT1 which contain printer control characters,(HP). Have
you heard of an editor in windows that allows the control
character thru the print processors. Notepad, etc always
change the contol characters.

Hope my comments help.

GM.
.
 
H

Hal Hostetler [MVP DTS]

How about from a command prompt:

Copy /b (filename) LPT1

The /b switch indicates a binary copy, so control characters will be passed
to the printer. This is the normal way to send printer files (print to
file, filename.PRN) to a printer. more inf on Copy command options is
available by typing Copy /? at a command prompt.

Hal
--
Hal Hostetler, CPBE -- (e-mail address removed)
Senior Engineer/MIS -- MS MVP-DTS -- WA7BGX
http://www.kvoa.com -- "When News breaks, we fix it!"
KVOA Television, Tucson, AZ. NBC Channel 4
Got Blues? - www.badnewsbluesband.com
 
D

Davide Guolo

Hal Hostetler,
How about from a command prompt:
Copy /b (filename) LPT1

Her DOS app. can only print to LPT ports.

Anyway, in this situation, Printfil could help.

Kind regards,
Davide Guolo
--------------------------------------------------------------
Printfil - Windows Printing System for Applications
http://www.guolo.com/printfil
Odbc4All - Connection to ODBC Data Sources for any Application
http://www.guolo.com/odbc4all
--------------------------------------------------------------
 

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