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