command line printer problem using echo lpt2 commands
Posted: 30 Oct 2014 08:27
For years I printed from batch files using the following:
to set up: Net Use LPT2: "\\asrock-pc\lexmark e260d" & if you like /persistent:yes
then applying you put in the batch file echo what a nice day > LPT2 & the printer prints it.
well the above monochrome laser printer died and I cannot get the command to work on another printer. I tried two color laser printers one a Lexmark and No! I then tried another
monochrome brother printer and it not work but a least the print command worked.
in all of the above you get no exceptions it just NOT print!
for example on the monochrome brother : net use LPT2: \\asrock-pc\brother /persistent:yes
and then echo what a nice day > LPT2 does not work BUT the following works
print /d:\\Asrock-pc\brother hello.txt gives you a dos line saying hello.txt is currently being printed AND IT PRINTS! ( with the two color printers you get the currently being printed line but nothing prints. ) What also works is print /d:LPT2 hello.txt
So what is the solution please!!
As we heavily use this command sequence I have ordered a used e260d. But if you guys come up with a solution i can use ALL my printers!
Roe5685
to set up: Net Use LPT2: "\\asrock-pc\lexmark e260d" & if you like /persistent:yes
then applying you put in the batch file echo what a nice day > LPT2 & the printer prints it.
well the above monochrome laser printer died and I cannot get the command to work on another printer. I tried two color laser printers one a Lexmark and No! I then tried another
monochrome brother printer and it not work but a least the print command worked.
in all of the above you get no exceptions it just NOT print!
for example on the monochrome brother : net use LPT2: \\asrock-pc\brother /persistent:yes
and then echo what a nice day > LPT2 does not work BUT the following works
print /d:\\Asrock-pc\brother hello.txt gives you a dos line saying hello.txt is currently being printed AND IT PRINTS! ( with the two color printers you get the currently being printed line but nothing prints. ) What also works is print /d:LPT2 hello.txt
So what is the solution please!!
As we heavily use this command sequence I have ordered a used e260d. But if you guys come up with a solution i can use ALL my printers!
Roe5685