跳过标题
 

当用IP地址指定某打印机时

c:> lpr -Sprinter's IP address -Poption [ol] \pass name\file name

当使用某主机名替代IP地址时

c:> lpr -Sprinter's host name -Poption [ol] \pass name\file name

打印二进制文件时,请添加“-ol”选项(小写o和小写l)。

使用主机名为“host”的打印机来打印C:\PRINT目录中名为“file1”的RPCS文件时,命令行如下所示:

c:> lpr -Shost -Pfiletype=RCS -ol C:\PRINT\file1