Printing from DOS Application

  • Thread starter Thread starter Nancy
  • Start date Start date
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.
 
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.
 
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.
 
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.
.
 
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
 
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
--------------------------------------------------------------
 
Back
Top