Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

dir > prn not working

308 views
Skip to first unread message

Gurjit singh

unread,
Jun 11, 2003, 9:54:43 AM6/11/03
to
Dear sir,

Want help in printing issue.
i have a dos based application on my windows 2000.
i have configured the printer , which is connected to
other machine on network, my dos based application only
prints on lpt1 printer, to print from my dos program i
have to map the remote printer by the command
net use lpt1 \\machinename\printername
by the above command i can give the printing from my
command prompt by the above command dir > lpt1
, but if i give dir > prn ,my command prompt get hanged ,
i have found that if dir>prn command works then my dos
program will also work.

can u pl give me the solution for the above.

Pl mail me on gurj...@yahoo.com

Gurjit Dhillon


Mark V

unread,
Jun 11, 2003, 9:23:58 PM6/11/03
to
Gurjit singh wrote in news:0b0601c33021$02d31db0$a601...@phx.gbl:

> Dear sir,
>
> Want help in printing issue.
> i have a dos based application on my windows 2000.
> i have configured the printer , which is connected to
> other machine on network, my dos based application only
> prints on lpt1 printer, to print from my dos program i
> have to map the remote printer by the command
> net use lpt1 \\machinename\printername
> by the above command i can give the printing from my
> command prompt by the above command dir > lpt1
> , but if i give dir > prn ,my command prompt get hanged ,
> i have found that if dir>prn command works then my dos
> program will also work.

IIRC the device PRN is "hard-wired" to the first local physical
printer port and cannot be assigned to a remote resource as can LPTx.


0 new messages