When specifying a printer by IP address
c:> lpr -Sprinter's IP address -Poption [ol] \pass name\file name
When using a host name instead of an IP address
c:> lpr -Sprinter's host name -Poption [ol] \pass name\file name
When printing a binary file, add the “-ol” option (lowercase o, and lowercase l).
When using a printer with the host name “host”, to print a RPCS file named “file1” located in the C:\PRINT directory, the command line is as follows:
c:> lpr -Shost -Pfiletype=RCS -ol C:\PRINT\file1