Printing PDFs from Windows Command Line

后端 未结 11 498
我寻月下人不归
我寻月下人不归 2020-11-30 01:06

I\'m trying to print all pdfs in current dir. When I call this bash script in cmd (singlepdf.sh): \'\"C:\\Program Files (x86)\\Adobe\\Reader 10.0\\Reader

11条回答
  •  时光取名叫无心
    2020-11-30 02:04

    Looks like you are missing the printer name, driver, and port - in that order. Your final command should resemble:

    AcroRd32.exe /t    
    

    For example:

    "C:\Program Files (x86)\Adobe\Reader 11.0\Reader\AcroRd32.exe" /t "C:\Folder\File.pdf" "Brother MFC-7820N USB Printer" "Brother MFC-7820N USB Printer" "IP_192.168.10.110"
    

    Note: To find the printer information, right click your printer and choose properties. In my case shown above, the printer name and driver name matched - but your information may differ.

提交回复
热议问题