Ola*_*døy 6 windows-7 printing command-line ip
我有一台 Epson TM-T88V 网络打印机。我可以使用打印机驱动程序打印到它。但是我需要使用命令行将“打印文件”复制到打印机,这会导致问题。
我不能使用
copy file.prn {ip-address}
Run Code Online (Sandbox Code Playgroud)
因为这会简单地将文件复制到一个新文件中,该文件的名称为 ip 地址。
我看到了各种建议......似乎不起作用:
copy file.prn \\{ip-address}
Run Code Online (Sandbox Code Playgroud)
指定的路径无效
这个也让我失望:
NET USE LPT1: \\{ip-address}\{printer-name}
Run Code Online (Sandbox Code Playgroud)
发生系统错误 66。
网络资源类型不正确。
尝试 ftp 文件也失败了。(无法打开连接。)
任何想法如何解决这个问题?
使用微软的lpr
客户端
C:\>lpr /?
Sends a print job to a network printer
Usage: lpr -S server -P printer [-C class] [-J job] [-o option] [-x] [-d] filename
Options:
-S server Name or ipaddress of the host providing lpd service
-P printer Name of the print queue
-C class Job classification for use on the burst page
-J job Job name to print on the burst page
-o option Indicates type of the file (by default assumes a text file)
Use "-o l" for binary (e.g. postscript) files
-x Compatibility with SunOS 4.1.x and prior
-d Send data file first
Run Code Online (Sandbox Code Playgroud)
这适用于 JetDirect 和类似的盒子/适配器以及启用了 LPD 服务的 Unix/Linux 和 Windows 服务器。
小智 5
从命令提示符处:
copy filename \\Server Name\\{Printer Share Name}
Run Code Online (Sandbox Code Playgroud)
如果打印共享名称中有空格,请务必用引号引起来。例如:
copy filename "\\{Server Name}\\{Printer Share Name}"
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
53449 次 |
最近记录: |