Command line photo printing in Windows 7

前端 未结 3 1690
你的背包
你的背包 2021-01-01 05:37

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:



        
相关标签:
3条回答
  • 2021-01-01 06:01

    Try via MS Paint

    mspaint /pt <FILE> <PRINTER>
    

    Works like a charme for me.

    0 讨论(0)
  • 2021-01-01 06:22

    Did you look here?

    http://social.technet.microsoft.com/Forums/en-US/ITCG/thread/87e942da-faec-48e1-b339-7ba3da7c9134

    The provided rundll32 command line looks slightly different from yours. Alternatively, the page implies that mspaint.exe has a command-line option to print.

    Note that I haven't tried any of these, though...

    0 讨论(0)
  • 2021-01-01 06:23

    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"
    
    0 讨论(0)
提交回复
热议问题