本文介绍了Windows 7中的命令行照片打印的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要在Windows 7中从命令行打印照片(.jpg).我尝试使用lpr失败,并且发现了适用于Windows XP的方法,如下所示:
I need to print a photo (.jpg) from the command line in Windows 7. I have tried using lpr to no success, and found methods for Windows XP like the following:
rundll32 shimgvw.dll ImageView_PrintTo /pt myPhoto.jpg "myPrinter"
这是行不通的(不足为奇),而我在谷歌搜索上的时间没有其他任何事情.我试图找到一种在任何Windows 7计算机上执行此操作的常规方法,而无需安装或设置任何内容.是否存在这样的命令?
This doesn't work (not surprising), and my hours of Googling has turned up nothing else. I'm trying to find a stock way to do this on any Windows 7 machine without needing to install or set anything up. Does there exist such a command?
推荐答案
也许重新格式化命令并添加一些绝对路径会有所帮助?以下对我有用:
Maybe reformatting the command and adding some absolute paths would help? The following worked for me:
rundll32 C:\WINDOWS\system32\shimgvw.dll,ImageView_PrintTo "c:\mydir\my.bmp" "Fictional HP Printer"
这篇关于Windows 7中的命令行照片打印的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!