Use the LPR command line approach to add files to the print queue. Follow the example closely with regard to spacing and case. You can enter additional file names, or option switches followed by file names, if necessary.
Enter the following command at the MS-DOS prompt. Follow the example closely with regard to spacing and case.
LPR -S<server> -P<printer> [-options] <print file name>, <copies>
TipFor example, use the LPR command to print five copies of the plot file test.txt from the 999.9.999.9 network address to printer1: LPR -S999.9.999.9 -Pprinter1 -Og test.txt,5
.
Source :
http://www.barrcentral.com/help/beps/Using_the_LPR_command_line_approach.htm